first stab at frequency counting ngrams for type-ahead, rebuilds the
mapping too often