Find most frequent consecutive words from multiple line input