public static void Main()
Console.WriteLine("Please type in any sentence of any length");
input = Console.ReadLine();
Console.WriteLine("The total number of spaces in the text is " + between(input));
public static int between (string total)
for (int i = 0; i < total.Length; i++)
if (total.Substring(i, 1).Equals(" "))