public function columnCount()
    {
        $maxCol = 0;

        foreach ($this->_layout as $row => $items) {
            foreach ($items as $column => $item) {
                $maxCol = max($column, $maxCol);
            }
        }

        return $maxCol;
    }
public function columnCount()
    {
        $maxCol = 0;

        foreach ($this->_layout as $row => $items) {
            foreach ($items as $column => $item) {
                $maxCol = max($column, $maxCol);
            }
        }

        return $maxCol;
    }
public function columnCount ( ) { $ maxCol = 0 ; foreach ( $ this -> _layout as $ row => $ items ) { foreach ( $ items as $ column => $ item ) { $ maxCol = max ( $ column , $ maxCol ) ; } } return $ maxCol ; }
Returns the amount of columns.

@return int
Returns the amount of columns .