Python: efficient counting number of unique values of a key in a list of dictionaries,print(len(set(p['Nationality'] for p in people)))