Added tests and code for specifying a minimum and maximum total count of n-grams for keeping a result row.