I've discovered flatMap
Fixed word count overflow