how to count duplication in a list python code example Example: count number of repeats in list python mylist.count(element)