Declaration:
extern int NumWindows;
This is the number of windows opened in ChipProg. Its value changes dynamically, as windows are opened or closed.