title: Adding a number to the dock icon
body: <p>Here is my code:</p>
  
  <pre><code>for (NSManagedObject *object in array) {
      if ([[object valueForKey:@"DueDate"] isLessThan:[NSDate date]]) {
          count++;
          NSLog(@"Looped");
          NSString *test = [[NSString alloc] initWithFormat:@"%@", [object valueForKey:@"DueDate"]];
          NSLog(@"%@", test);
      }
  }
  NSLog(@"%i", count);
  NSDockTile *aTitle = [[NSApplication sharedApplication] dockTile];
  [aTitle setBadgeLabel:[NSString stringWithFormat:@"%i", count]];
  </code></pre>
  
  <p>For some reason this code is adding 8 to the dock icon when it should be 2</p>