title: DotNetNuke: how to count modules in a pane on current page
body: <p>Is there a way to <strong>count</strong> the visible <strong>modules in</strong> a specific <strong>pane on</strong> from the current page context?</p>
  
  <p>I know in theory I could write a joined sql statement, but DotNetNuke offers a variety of objects that support this kind of operation.</p>
  
  <p>This is for a DNN 4 site, but any hint also for DNN 5 is greatly appreciated.</p>
  
  <p>Even the information if there is any module in the pane at all would help.</p>