[#BloombergLP-bslstl-HashTable-09-countElementsInBucket] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/HashTable-09.adoc[HashTable<UnorderedMapKeyConfiguration<basic_string<char> const, pair<basic_string<char> const, Json>>, TransparentHash, TransparentEqualTo, allocator<pair<basic_string<char> const, Json>>>]::countElementsInBucket :relfileprefix: ../../../ :mrdocs: Return the number elements contained in the bucket at the specified `index`. Note that this operation has linear run‐time complexity with respect to the number of elements in the indexed bucket. == Synopsis Declared in `<bslstl_hashtable.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bslstl/HashTable-09/SizeType.adoc[SizeType] countElementsInBucket(xref:BloombergLP/bslstl/HashTable-09/SizeType.adoc[SizeType] index) const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#