[#bsl-unordered_map-02b-count-08]
= xref:bsl.adoc[bsl]::xref:bsl/unordered_map-02b.adoc[unordered&lowbar;map]::count
:relfileprefix: ../../
:mrdocs:

`count` overloads

== Synopses

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

Return the number of elements with the specified `key`&period;


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

[.small]#xref:bsl/unordered_map-02b/count-04.adoc[_» more&period;&period;&period;_]#

Return the number of elements with an equivalent `key`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class LOOKUP&lowbar;KEY&gt;
xref:bsl/unordered_map-02b/size_type.adoc[size&lowbar;type]
xref:bsl/unordered_map-02b/count-0e.adoc[count](LOOKUP&lowbar;KEY const& key) const
requires BloombergLP&colon;&colon;bslmf&colon;&colon;IsTransparentPredicate&lt;HASH, LOOKUP&lowbar;KEY&gt;&colon;&colon;value
        &amp;&amp; BloombergLP&colon;&colon;bslmf&colon;&colon;IsTransparentPredicate&lt;EQUAL,LOOKUP&lowbar;KEY&gt;&colon;&colon;value;
----

[.small]#xref:bsl/unordered_map-02b/count-0e.adoc[_» more&period;&period;&period;_]#

== Return Value

`0` or `1`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *key*
| key to look up
|===


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