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