Ds\Vector::count

(PECL ds >= 1.0.0)

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