Counting Sort Part - I

Given a list of integers, count and output the number of times each value appears.
There will be two lines of input:
n - the size of the list
ar - n numbers that makes up the list