I'm trying to figure out how to count the frequency of each unique number in the below array, ranging from 1 - 17:
x3 = [ 8 12 10 9 6 6 5 11 9 10 4 12 10 7 7 7 7 9 8 7 9 6 7 8
8 10 7 9 9 5 9 7 5 12 12 10 7 6 9 8 6 8 5 11 7 9 7 9
9 7 12 10 12 11 9 11 6 7 5 8 8 7 10 8 7 9 6 10 6 13]
Using numpy, this was done by [np.equal(x3, i).sum() for i in range (1,18)]
What is the best alternative way to do this without numpy?