This method of the Recordset class indicates how many pages of data the Recordset object contains.
public int getPageCount();
Returns an integer indicating the number of pages.