[#bsl-map-0c7-count-08] = xref:bsl.adoc[bsl]::xref:bsl/map-0c7.adoc[map<int, pair<shared_ptr<Statistics>, shared_ptr<Collector<OsLinux>>>>]::count :relfileprefix: ../../ :mrdocs: Return the number of `value_type` objects within this map whose keys are equivalent to the specified `key`. Note that although a map maintains unique keys, the returned value can be other than 0 or 1, because a transparent comparator may have been supplied that provides a different (but compatible) partitioning of keys for `LOOKUP_KEY` as the comparisons used to order the keys in the map. == Synopsis Declared in `<bslstl_map.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class LOOKUP_KEY> xref:bsl/map-0c7/size_type.adoc[size_type] count(LOOKUP_KEY const& key) const requires BloombergLP::bslmf::IsTransparentPredicate<COMPARATOR, LOOKUP_KEY>::value; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#