public function countItems($items)
    {
        if ($this->_count) {
            return $this->_count;
        }
        $this->_count($items);

        return $this->_count;
    }
public function countItems($items)
    {
        if ($this->_count) {
            return $this->_count;
        }
        $this->_count($items);

        return $this->_count;
    }
public function countItems ( $ items ) { if ( $ this -> _count ) { return $ this -> _count ; } $ this -> _count ( $ items ) ; return $ this -> _count ; }
Counts items in menu.

@param \Cake\ORM\Query $items Items to count
@return int
Counts items in menu .