I have a nested dictionary:
{'1': {'Toy Story (1995)': 5.0,
'GoldenEye (1995)': 3.0,
'Four Rooms (1995)': 4.0,
'Get Shorty (1995)': 3.0,
'Copycat (1995)': 3.0},
'2': {'GoldenEye (1995)': 3.0,
'Get Shorty (1995)': 3.0,
'Copycat (1995)': 3.0},
'3': {'Toy Story (1995)': 5.0,
'Get Shorty (1995)': 3.0,
'Copycat (1995)': 3.0}}
As you see I have three items and for each as values there are dictionaries with films. I want to count which films appear most often. So the output can be a list or dictionary with movie name and how often it appeared among items. Like:
{'Get Shorty (1995)': 3,
'Copycat (1995)': 3,
'GoldenEye (1995)': 2,
'Toy Story (1995)': 2,
'Four Rooms (1995)': 1}
How to do that?