wrote an ngram counter script as a step to writing the revised markov chain.