I have an array and when I display the array, it looks like this:

Group1
Dave
John
Dave
Mike
Mike
Leo
Amos
Brian
Dave

I want to have it displayed like this:

Group1
Dave 3
John 1
Mike 2
Leo 1
Amos 1
Brian 1

Here is my code at the moment to display as in the first example:

<u>Group1</u><br>
<%for i=1 to Var10%>
<%=Var10P(i)%><br>
<%next%>