Counts all k-mers in sequence.

def consume(self, seq):
        '''Counts all k-mers in sequence.'''
        for kmer in iter_kmers(seq, self.k, canonical=self.canonical):
            self._incr(kmer)