How to count the occurrence of certain item in an ndarray? How to count the occurrence of certain item in an ndarray? numpy numpy