updates to kmer_counter allow functions to be used in other scripts