return the size of the rows as total_rows