Standard LibraryTypesMapMethodscountOn this pagecount Method of Map. count(const string key) -> integer Returns the number of elements matching the specified key in the container. Parameters key: The key to search for.