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