NumWindows ( )

Returns the number of active windows.

Example: