code: private int getResultsDisplayed(CmsGallerySearchBean searchObj) {
  
          int resultsDisplayed = searchObj.getMatchesPerPage() * searchObj.getLastPage();
          return (resultsDisplayed > searchObj.getResultCount()) ? searchObj.getResultCount() : resultsDisplayed;
      }
docs: Returns the count of the currently displayed results.<p>
  
  @param searchObj the search bean
  
  @return the count of the currently displayed results