In this example, we created a Dictionary collection named `myDictionary` and added three key-value pairs. Then we used the Count property to retrieve the number of items in the dictionary and displayed the count. Example 2: Using count property to check if a Dictionary contains a keyC# Dictionary