How to count for each element how many times it repeats in a list and display the element that repeats more than three times?