title: How Save Temporally NSMutableArray count?
body: <p>I am new IOS, i will like to know how save temporally NSMutableArray count sow i can compare with the new count?</p>
  
  <p>i add badge icon on the app with the count and remove when i click to the new row, but when i refresh and add new row the add all the badge again. </p>
  
  <p>This is the code:</p>
  
  <pre><code>- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
  {
  
  [[UIApplication sharedApplication] setApplicationIconBadgeNumber:self.parseResults.count];
  
  return self.parseResults.count;
  
  }
  
  - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
  {
  
  
  NSInteger badge = [[UIApplication sharedApplication] applicationIconBadgeNumber];
  
  
  if (badge &gt; 0) {
      [[UIApplication sharedApplication] setApplicationIconBadgeNumber:(badge - 1)];
  }
  
  }
  </code></pre>
  
  <p>Thank</p>