How to determine the number of items that are in a dictionary in python?