Hi guys,

I am stuck in one of my code to count the number of occurrence of each element in an array. Can someone please nudge me towards where I am going wrong.

```
for(int i=0;i<r;i++){
for(int j=0;j<r;j++){
if(store[i]==store[j])//array where I need to count the no. of occurrence of elements
{
++counter;
}
}
}
```

Many Thanks