Get the equivalent COUNT query of this query as a new query object.
SelectQueryInterface A new SelectQuery object with no fields or expressions besides COUNT(*).
Overrides SelectQueryInterface::countQuery
public function countQuery() {
return $this->query
->countQuery();
}