Numpy Array Count Unique Values With Condition