code: public final int getTotalPages() {
      if (getTotalItems() < getPageSize()) {
        return 1;
      } else {
        final int remainder = getTotalItems() % getPageSize();
        final int quotient = getTotalItems() / getPageSize();
        return (0 == remainder) ? quotient : (quotient + 1);
      }
    }
docs: <p>
  getTotalPages.
  </p>
  
  @return a int.