Program for count the space from input string

I am here to write a program in which user input the string & result will be the number of space available in inserted input.
C# code is given below you have to just copy and paste C# code in visual studio console and execute the code.

Code Sample [C# Code]

Output

Enter the Words from which you want to count space
Input -: Hungry Belly has no ears
Output -: 4