in-memory k-mer counting