size

Gives the number of elements in a stack.

  size_type size() const;
  
Remarks

Returns the number of elements in a stack.