(PECL ds >= 1.0.0)
Ds\Deque::count — Returns the number of values in the collection.
See Countable::count()