Numpy Array Get Number Of Distinct Subsets