/** * Return the total number of items in the query result * * @return int */ public function count() { if ($this->count === null) { $this->count = $this->query->count(); } return $this->count; }
/** * Count all results of this query * * @return int */ public function count() { return $this->query->count(); }