Ds\Map::count

(PECL ds >= 1.0.0)

Ds\Map::countReturns the number of values in the map.