Words statistic for n-grams