Store a dictionary {rating: how many times it was given} in result, e.g. {2: 1, 3: 2, …}.
import numpy as np ratings = np.array([5, 4, 4, 3, 5, 2, 4, 5, 3, 4])
Store your final answer in a variable named result.
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.