The attached application and code allows you to count total number of words in the given text using C#.

Write your text in the TextBox and see the number of words.