Add option for n-gram length
Fix merge-counts pipeline