Count Duplicates In Array Numpy Matrix