python find duplicates in list print howm many times repeats code example Example: count number of repeats in list python mylist.count(element)