Count the Frequency of Words in a String Write a program to count the frequency of each word in a string.