« Ds\Stack::copy Ds\Stack::isEmpty » PHP Manual Stack Returns the number of values in the stack Ds\Stack::count (PECL ds >= 1.0.0) Ds\Stack::count — Returns the number of values in the stack See Countable::count()