title: How to count the number of uppercase characters in a NSString?
body: <p>I'm trying to find out the best way to count the number of uppercase characters that are in a NSString. I know how to find out if a certain character is uppercase by using this code:</p>
  
  <pre><code>NSString *s = @"This is a string";
  BOOL isUppercase = [[NSCharacterSet uppercaseLetterCharacterSet] characterIsMember:[s characterAtIndex:0]];
  </code></pre>
  
  <p>What would be the best way to count the number of uppercase letters in a NSString? Thanks.</p>