[#bsl-hash_map-count] = xref:bsl.adoc[bsl]::xref:bsl/hash_map.adoc[hash_map]::count :relfileprefix: ../../ :mrdocs: Return the number of elements matching the specified key. == Synopsis Declared in `<bslstp_hashmap.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/hash_map/size_type.adoc[size_type] count(xref:bsl/hash_map/key_type.adoc[key_type] const& __key) const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#