I am trying to input some data from a .csv file. The data file is 4 columns and any number of rows. I am trying to count the number of rows and then extract the data. The code will count the rows but then I try to use seekg to start from the beginning of the file but it isn't working as I expect it to