count repeated values in python list