Validate header and column count.