Added TextUtilities.countOccurrences()