title: Returning the number of objectForKey
body: <p>I have a part of my code that returns the numberOfRowsInSection.</p>
  
  <p><strong>Code</strong></p>
  
  <pre><code>for (NSDictionary *consoleDictionary in [self arrayFromJSON]) {
      if ([[consoleDictionary objectForKey:@"model"] isEqualToString:@"PlayStation 3"]) {
          NSLog(@"%@", consoleDictionary);
      }
  }
  </code></pre>
  
  <p><strong>Output</strong></p>
  
  <pre><code>2013-02-03 22:37:08.468 PageControl01[5782:c07] {
      console = PlayStation;
      game = "007 Legends";
      id = 1;
      model = "PlayStation 3";
      publisher = "Electronic Arts";
  }
  2013-02-03 22:37:08.478 PageControl01[5782:c07] {
      console = PlayStation;
      game = "Ace Combat: Assault Horizon";
      id = 2;
      model = "PlayStation 3";
      publisher = Namco;
  }
  </code></pre>
  
  <p>This one is apparently right because it logs all the <code>"PlayStation 3"</code> model. However, this is not what I need. I want to log the number of <code>"PlayStation 3"</code>'s. So I tweak the code a little bit and then this:</p>
  
  <pre><code>for (NSDictionary *consoleDictionary in [self arrayFromJSON]) {
      if ([[consoleDictionary objectForKey:@"model"] isEqualToString:@"PlayStation 3"]) {
          NSLog(@"%d", [consoleDictionary count]);
      }
  }
  </code></pre>
  
  <p><strong>Output</strong></p>
  
  <pre><code>2013-02-03 22:39:43.605 PageControl01[5816:c07] 5
  2013-02-03 22:39:43.605 PageControl01[5816:c07] 5
  </code></pre>
  
  <p>This one is pretty near yet so close. Instead of logging the number <code>5</code>, it should log the number <code>2</code> since there are only <code>2</code> <code>"PlayStation 3"</code>.</p>
  
  <p>Please help.</p>