implement ngram_count and corresponded createdb