Start with an array of integers. Eg: const arr = [1, 2, 3, 2]
Write a function that will loop through the array counting the number of occurences of each value.
The return value of the function will be an Object whose keys will be the numbers from the array and whose values
will be the occurrence count for each value. Eg: { 1:1, 2:2, 3:1 }