using System;
public class Program
{
public static void Main()
Console.WriteLine("Введи строку ");
string text = Console.ReadLine();
int count ;
for (int index = 0; index < text.Length; index++)
if (text[index] == ' ')
count++;
}
else
Console.WriteLine(count);