a = numpy.array([0, 3, 0, 1, 0, 1, 2, 1, 0, 0, 0, 0, 1, 3, 4])
unique, counts = numpy.unique(a, return_counts=True)
dict(zip(unique, counts))
# {0: 7, 1: 4, 2: 1, 3: 2, 4: 1}
myArray = [1, 2, 3];
print(len(myArray));
#output
3
# Our array
arr = [82, 49, 82, 82, 41, 82, 15, 63, 38, 25]
# let's print the number of 82 in our array/list
print(arr.count(82))
# it will print : 4
import numpy as np
y = np.array([0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 1])
num_zeros = (y == 0).sum()
num_ones = (y == 1).sum()