Tech Mahindra interview question

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