Training for ngram-count