411 REFERENCE · Wikibooks
C++ Language/Std/Stl/CollectionClasses/SortedCollections/Map/Size
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
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)