Added program to count occurrence of a num in array