src/SQLRequest/SQLSelectRequest.php
public function count($max = '') {
		$countKey = '0rpHeus_Count';
		$query = $this->getClone(false);
		
		$result = $query->set('what', 'COUNT(*) ' . $countKey)
			->from('(' . $this->getQuery() . ') oq')
			->asArray()->run();
		
		return isset($result[$countKey]) ? $result[$countKey] : 0;
	}
public function count($max = '') {
		$countKey = '0rpHeus_Count';
		$query = $this->getClone(false);
		
		$result = $query->set('what', 'COUNT(*) ' . $countKey)
			->from('(' . $this->getQuery() . ') oq')
			->asArray()->run();
		
		return isset($result[$countKey]) ? $result[$countKey] : 0;
	}
public function count ( $ max = '' ) { $ countKey = '0rpHeus_Count' ; $ query = $ this -> getClone ( false ) ; $ result = $ query -> set ( 'what' , 'COUNT(*) ' . $ countKey ) -> from ( '(' . $ this -> getQuery ( ) . ') oq' ) -> asArray ( ) -> run ( ) ; return isset ( $ result [ $ countKey ] ) ? $ result [ $ countKey ] : 0 ; }
Count the number of result of this query

@param int $max The max number where are expecting
@throws Exception
@return int
Count the number of result of this query