how to count the occurrence of certain item in an ndarray in python?,collections.Counter(a)