title: Cocoa get number of open windows
body: <p>I am making a simple app that will hide open windows, but I want to add a text box that will tell the number of open windows, what cocoa function do I need for this? is there a function in <code>nswindow</code> that I could use? </p>