public function count() {
		if ($this->count === null) {
			$groupPart = $this->select->getPart(Select::GROUP);
			
			$select = empty($groupPart)
				? $this->prepareSelect(clone $this->select)
				: $this->prepareSubquerySelect(clone $this->select);
			
			$this->count = (int) $select->query(PDO::FETCH_OBJ)->fetch()->{self::COUNT_COLUMN};
		}
		
		return $this->count;
	}
public function count() {
		if ($this->count === null) {
			$groupPart = $this->select->getPart(Select::GROUP);
			
			$select = empty($groupPart)
				? $this->prepareSelect(clone $this->select)
				: $this->prepareSubquerySelect(clone $this->select);
			
			$this->count = (int) $select->query(PDO::FETCH_OBJ)->fetch()->{self::COUNT_COLUMN};
		}
		
		return $this->count;
	}
public function count ( ) { if ( $ this -> count === null ) { $ groupPart = $ this -> select -> getPart ( Select :: GROUP ) ; $ select = empty ( $ groupPart ) ? $ this -> prepareSelect ( clone $ this -> select ) : $ this -> prepareSubquerySelect ( clone $ this -> select ) ; $ this -> count = ( int ) $ select -> query ( PDO :: FETCH_OBJ ) -> fetch ( ) -> { self :: COUNT_COLUMN } ; } return $ this -> count ; }
Get the number of the all items

@return int
Get the number of the all items