C++ Language/Std/Stl/CollectionClasses/SortedCollections/Map/Size

The size() function reports how many items are in the map. The count('i') function reports how many items are in the map having that particular key (0 or 1 of them).

Additional information about map size (includes interactive examples)