count the number of duplicates python