def sequence_count(string, wordlength):
    """Return a frequency count of all sequences of a given size found in a string.
    
    
    """
    i = 0
    wc = {}
    while i < len(string) - wordlength + 1:
        word = string[i:i+wordlength]
        if word in wc:
            wc[word] += 1
        else:
            wc[word] = 1
        i += 1
    return wc
dataset/ETHPy150Open ResilientScience/wot/wot/dimer.py/sequence_count/original