Writer::sanitizeColumnsCount improved