The following program counts the occurrence of words in a string but, it also counts extra spaces in the string as words. Need to modify it so, it won't count the extra spaces as words
https://github.com/TheAlgorithms/Python/blob/master/strings/word_occurrence.py