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