title: QTP How to count number of Window objects in a Browser
body: <p>I hve a web app that can open several windows, not new browser windows, but windows overlapping the main window, like pop up windows. At one place I have to verify if I am on the main app window. My first idea was to get the number of windows in a browser and if this is 0 then I am home, but I cannot find a solution to how to count those objects.</p>
  
  <p>Main page looks like this :</p>
  
  <pre><code>Browser().Page()
  </code></pre>
  
  <p>If I open a new window (popup) it looks like this :</p>
  
  <pre><code>Browser().Window().Page()
  </code></pre>
  
  <p>And if I open another from the previous one it looks like this : </p>
  
  <pre><code>Browser().Window().Window().Page()
  </code></pre>
  
  <p>The question is how can I get the number of Window elements?</p>