[#bsl-map-0c7-count-0b]
= xref:bsl.adoc[bsl]::xref:bsl/map-0c7.adoc[map&lt;int, pair&lt;shared&lowbar;ptr&lt;Statistics&gt;, shared&lowbar;ptr&lt;Collector&lt;OsLinux&gt;&gt;&gt;&gt;]::count
:relfileprefix: ../../
:mrdocs:

Return the number of `value&lowbar;type` objects within this map whose keys are equivalent to the specified `key`&period; Note that since a map maintains unique keys, the returned value will be either 0 or 1&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;map&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/map-0c7/size_type.adoc[size&lowbar;type]
count(xref:bsl/map-0c7/key_type.adoc[key&lowbar;type] const& key) const;
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
