This method of the Recordset class indicates the current number of records in a Recordset object.
public int getRecordCount();
Returns an integer indicating the number of records.