What\'s a simple implementation of the following NSString category method that returns the number of words in self, where words are separated by an
NSString
self
- (NSUInteger) wordCount { NSArray *words = [self componentsSeparatedByString:@" "]; return [words count]; }