SmallDay interview question

Write a progrm to accept the input String and count the word