|Windows Script Host|
|length Property (WshEnvironment Object)|
Returns the number of Windows environment variables on the local computer system (the number of items in an Environment collection).
The length property is a read-only integer that you use in scripts when you write in JScript. It is similar to VBScript's Count method.
ReferenceCount Method (Windows Script Host)