A recursive function to count number of occurrences for each element in the array without traversing the whole array
void findFrequencyUtil ( int arr [ ] , int low , int high , vector < int > & freq ) {