Read nrows before reading ncols