private function getNumberOfColumns()
    {
        if (null !== $this->numberOfColumns) {
            return $this->numberOfColumns;
        }

        $columns = [\count($this->headers)];
        foreach ($this->rows as $row) {
            $columns[] = \count($row);
        }

        return $this->numberOfColumns = \max($columns);
    }