Numpy Array Count Unique Values In Dataframe