Fix typo in numRecords calculation.