Naive split (ignores quoted fields). Compares each line's field count to the first line.

Input
First line columns: 3
Min / max: 2 / 4
Some rows differ from the first.
Lines โ‰  first (3 cols)
  • Line 2: 2 columns
  • Line 3: 4 columns
LineColumns
13
22
34