def count_kmers(seq, k=3):
    """Returns the Count or Frequency of Kmers generated in a sequence"""
    counts = {}
    num_kmers = len(str(seq)) - k + 1
    for i in range(num_kmers):
        kmer = str(seq)[i:i + k]
        if kmer not in counts:
            counts[kmer] = 0
        counts[kmer] += 1
    return counts
