Add row numbers to read function