1from collections import Counter
2
3# Example phrase
4phrase = "John is the son of John second. Second son of John second is William second."
5split_phrase = phrase.split()
6
7# create counter object
8Counter = Counter(split_phrase)
9
10most_occured_words = Counter.most_common(4)
11
12print(most_occured_words)