Write a method maxOccurrences that accepts a list of integers as a parameter and returns the number the number of times the most frequently occurring integer (the "mode") occurs in the list. Solve this problem using a map as auxillary storage. If the list is empty return 0.