Numpy Array Count Unique Values With Criteria