Replaced dependency on WordsCounted gem with PatternCounter.