title: Objective-C: How to count for how many times a string appears in an array?
body: <p>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...</p>
  
  <pre><code>index 0 : "Andy"
  index 1 : "Paul"
  index 2 : "Paul"
  index 3 : "Michael"
  index 4 : "Paul"
  index 5 : "Andy"
  </code></pre>
  
  <p>How would I perform operations on this array to calculate the number of times each word is present within the array? Like logging out...</p>
  
  <pre><code>Michael = 1
  Andy = 2
  Paul = 3 
  </code></pre>