Python Count Duplicates In Dataframe Sort