python find duplicates in list Counter code example Example: count number of repeats in list python mylist.count(element)