code: private static int getModalCount_(RootPaneContainer rootPane) {
  	synchronized (modals) {
  	  Modal modal = modals.get(rootPane);
  	  if (modal != null) {
  		return modal.getSize();
  	  }
  	  return 0;
  	}
    }
docs: Get the modal count of a specific RootPaneContainer.
  
  @param frame
  the RootPaneContainer with a modal
  @return int