Hi all,

So i've got an array to hold names and I want to count how many times a name is held in the array. For example,

John
John
James
John
James
Jack
Luke
John
Jack
Luke

If this was my array then I need a way to count how many times each name appears:
John = 4
James = 2
Jack = 2
Luke = 2

Does anyone know of a way to do this? Its reallllyyyyy important!

Regards,

james