Count the array

Problem Name:
Count the array
Site:HackerEarth
Links:
Tags:
Problem setters: