/** * @return integer */ public function getCount() { if ($this->_iterator && $this->get('count') === null) { $this->_iterator->init(); $this->set('count', (int) $this->_iterator->getTotalCount()); } return parent::getCount(); }