count the number of elements in np array code example Example: numpy count where print(np.sum(a % 2 == 1))