The GetCount method of the IJavaEnumXXXX interface returns the number of elements in the enumerator's list.
HRESULT GetCount(ULONG *pcelt)
S_OK Success.