program to print the word count in a string.EX: c programming is structure oriented,output will be 1-1,2-1,8-1,9-1,11-