Python Count Duplicate Rows In Dataframe To Numpy