don't store the class counts in the ngram, store the ngrams in a class