Tech Mahindra Interview Question

Write a python program to count the number of occurrences in a list