Add a check for number of columns + an error counter