numRecords is only available to the DATASET data type when the storage format is CSV. The return value is INTEGER.