Count the Occurrences of an Element in a List Write a program to count how many times an element occurs in a list.