[#bsl-set-0d-count-0ac] = xref:bsl.adoc[bsl]::xref:bsl/set-0d.adoc[set]::count :relfileprefix: ../../ :mrdocs: Return the number of `value_type` objects within this set that are equivalent to the specified `key`. Note that since a set maintains unique keys, the returned value will be either 0 or 1. == Synopsis Declared in `<bslstl_set.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/set-0d/size_type.adoc[size_type] count(xref:bsl/set-0d/key_type.adoc[key_type] const& key) const; ---- == Description Note: implemented inline due to Sun CC compilation error. [.small]#Created with https://www.mrdocs.com[MrDocs]#