Counting k-mer frequencies.