/** * get total items. * * @param int &$total */ public function getTotalItems(&$total) { $total = $this->_mHandler->getCount($this->getCriteria()); }