Macro Reference — Windows Collection — Count Property (Windows Collection)

# Count Property (Windows Collection)

Retrieves the number of windows.

##

### [JavaScript]

    nCount = shell.windows.Count;

### [VBScript]

    nCount = shell.windows.Count

## Examples

### [JavaScript]

    alert( "Number of top-level windows: " + shell.windows.Count );

### [VBScript]

    alert "Number of top-level windows: " & shell.windows.Count

## Version

Supported on EmEditor Professional Version 7.00 or later.