We should take in account <col> elements in column groups while finding number of columns in a table.