Deque
PHP Manual

Ds\Deque::count

(PECL ds >= 1.0.0)

Ds\Deque::countReturns the number of values in the collection

See Countable::count()


Deque
PHP Manual