Python 2.7 Counting number of dictionary items with given value,sum(x == chosen_value for x in list(d.values()))