[#bsl-unordered_set-0d2d-count-03]
= xref:bsl.adoc[bsl]::xref:bsl/unordered_set-0d2d.adoc[unordered&lowbar;set]::count
:relfileprefix: ../../
:mrdocs:

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

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/unordered_set-0d2d/size_type.adoc[unordered&lowbar;set&lt;KEY, HASH, EQUAL, ALLOCATOR&gt;::size&lowbar;type]
count(xref:bsl/unordered_set-0d2d/key_type.adoc[key&lowbar;type] const& key) const;
----


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