using System.Collections;
public static void Main(string[] args)
Stack my_stack = new Stack();
foreach(var elem in my_stack)
Console.WriteLine("Total elements in my stack: {0}" + my_stack.Count);
Console.WriteLine("Total elements in my stack after pop: {0}" + my_stack.Count);
Console.WriteLine("Total elements in my stack after clear: {0}" + my_stack.Count);