stack::getsize()Get the size of the Stack
stack::getsize()
There are no parameters.
number — Returns the size of the Stack
import adt/stack
stack = stack()
stack.push(10)
stack.push(12)
stack.push(8)
s = stack.getsize() ' Returns 3