The Count property contains the number of items in the dictionary.
This property is read only, so it cannot be used to change the size of the dictionary.
<html> <script language="JScript"> <!-- var fruits = new ActiveXObject("Scripting.Dictionary"); fruits.Add("A","AA"); fruits.Add("B","BB"); fruits.Add("G","CC"); fruits.Add("O","DD"); document.write("There are ",fruits.Count," items in this dictionary."); --> </script> </html>