CSV – Count #Columns

At start I count number of comma, like: stream.forEach(csvLine -> { int commaCounter = countMatches(csvLine, “,”); if (commaCounter != FIELDS_IN_CSV – 1) { // Alert } …