Python Count Duplicates In Dataframe Object Has No Attribute