Document_Options_to_Count_Objects
Syntax: doc -cl
Count layers in the active graph window. Assign the result to the variable count.
Syntax: doc -cp name
Count all graph windows in the current project that match exactly or begin with name. Assign the result to the variable count.
Syntax: doc -cs name
Count all datasets in the current project that match exactly or begin with name. Assign the result to the variable count. A matrix is also counted as a dataset. Only Window Short Names of Workbooks and Matrices are searched.
Syntax: doc -cw name
Count all workbooks in the current project that match exactly or begin with name. Assign the result to the variable count.