Safeguard against unexpected number of data rows