Yes, count can't be used with numpy array. There are several ways to count the occurrence of an item in a numpy array, but my favorite one is using 'collections.Counter'. It generates a dictionary with items as keys and their counts as values. Have a look at the following example.
>>> import collections
>>> y = np.array(['0', '0', '0', '1', '0', '1', '1','0', '0', '0', '0', '1'])
>>> collections.Counter(y)
Counter({'0': 8, '1': 4})
>>> t=collections.Counter(y)
>>> t['0']
8