Ds\Stack::count

Returns the number of values in the stack.

See Countable::count