<div class="meta" robots="noindex">

</div>

Property

# Dictionary.Count

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2019r2. Please use `Dictionary.KeyCount<dictionary.keycount>` as a replacement.

</div>

## Description

The number of *key-value* pairs in the **Dictionary**.

## Notes

Returns the actual <span class="title-ref">Count</span>, not the Ubound of an array.

## Sample code

The following code displays the number of *key-value* pairs:

``` xojo
Dim d As New Dictionary
' display the entries for the dictionary
MsgBox(Str(d.Count))
```

## Compatibility

All project types on all supported operating systems.
