char ngram counter code added