code: public int getRecordCount(FieldTable table)
      {
          int iKeyOrder = table.getRecord().getDefaultOrder();
          if (iKeyOrder == -1)
              iKeyOrder = Constants.MAIN_KEY_AREA;
          return this.getPKeyArea(iKeyOrder).getRecordCount();
      }
docs: Get the record count.
  Just returns the count of the default key area.
  @return The record count (or -1 if unknown).