Add number of rows check.