The Count property provides the number of enumerated items.
WshEnvironment.Count = natNumberOfItems
WshEnvironment.length property