/** * Returns the totalCount * @return integer */ public function getTotalCount() { if (is_null($this->_totalCount)) { $count = $this->_owner->findCount(); $this->_totalCount = $count->total; } return $this->_totalCount; }