Python Count Duplicate Rows In Dataframe Object Has No Attribute