def find_top_N_recurring_words(seq, N):

    dcounter = Counter()
    for word in seq.split():
        dcounter[word] += 1

    return dcounter.most_common(N)
find the top N recurring words in a file:
dataset/ETHPy150Open bt3gl/Python-and-Algorithms-and-Data-Structures/src/builtin_structures/find_top_N_recurring_words.py/find_top_N_recurring_words