Numpy Array Count Unique Values With Condition Meaning