Python program for counting common elements in a list

Python program for counting common elements in a list