Better computation of the number of columns
temporary change for debugging win32