Add support for generating count tables for any set of n-gram lengths.