Counts the number of times each element occurs in an array, prints the most frequently occurring element.