I know this has been asked in a java question. But how can I could in Objective-C count how many times a string appears in an array? For example, (please excuse the faux code here) if I had an array like...
index 0 : "Andy"
index 1 : "Paul"
index 2 : "Paul"
index 3 : "Michael"
index 4 : "Paul"
index 5 : "Andy"
How would I perform operations on this array to calculate the number of times each word is present within the array? Like logging out...
Michael = 1
Andy = 2
Paul = 3