I am reading one big csv file line by line and I want to count the no. of delimiters in each line. But if the delimiter is part of data value, then it should not be counted. Few records of data set: In all 3 lines, number of actual commas (which divides the data into multiple columns) are only 2