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

# Count Property (Documents Collection)

Retrieves the number of documents.

##

### [JavaScript]

    nCount = editor.Documents.Count;

### [VBScript]

    nCount = editor.Documents.Count

## Examples

### [JavaScript]

    alert( "Number of Documents: " + editor.Documents.Count );

### [VBScript]

    alert "Number of Documents: " & editor.Documents.Count

## Version

Supported on EmEditor Professional Version 5.00 or later.