The size method of the ObjectDictionary class returns a VARIANT that represents the number of objects in the ObjectDictionary.
public int size();