public static void Main()
Console.WriteLine("Write as many numbers as you want but once you type a zero I´ll tell you how many numbers you wrote. ");
x = int.Parse(Console.ReadLine());
x = int.Parse(Console.ReadLine());
Console.WriteLine("You wrote " + y + " numbers before writing a zero.");