Write a program to enter text string, then count the number of times each word occurs in that string and print to the screen in the format: word - number of words
output:
Enter string: I love you and you love who I hate you
I: 2
love: 2
you: 3
and:1
who:1
hate:1