Text this: Counting occurrences of some subword patterns.