Python Program to Count words in a String using Dictionary

Source: www.tutorialgateway.org