System.Collections.Stack
stackvariable .Count( )
Integer
This read-only property returns an Integer specifying the number of elements in the stack.