NSString category to count the number of occurrences for a given substring.