Updating word_pair_count to count arbitrary sequences of n words.