src/mako/database/query/Query.php
protected function paginationCount(): int
	{
		$clone = (clone $this)->clearOrderings();

		if(empty($this->groupings) && $this->distinct === false)
		{
			return $clone->count();
		}

		return $this->newInstance()->table(new Subquery($clone, 'count'))->count();
	}
protected function paginationCount(): int
	{
		$clone = (clone $this)->clearOrderings();

		if(empty($this->groupings) && $this->distinct === false)
		{
			return $clone->count();
		}

		return $this->newInstance()->table(new Subquery($clone, 'count'))->count();
	}
protected function paginationCount ( ) : int { $ clone = ( clone $ this ) -> clearOrderings ( ) ; if ( empty ( $ this -> groupings ) && $ this -> distinct === false ) { return $ clone -> count ( ) ; } return $ this -> newInstance ( ) -> table ( new Subquery ( $ clone , 'count' ) ) -> count ( ) ; }
Returns the number of records that the query will return.

@return int
Returns the number of records that the query will return .