Simplify ngram counting, and be stingy with space.