public function getItemCount($filter = true, $sort = true)
    {
        $data = $this->_loadAllTraversable();

        if ($filter) {
            $data = $this->_filterData($data, $filter);
        }

        return count($data);
    }
public function getItemCount($filter = true, $sort = true)
    {
        $data = $this->_loadAllTraversable();

        if ($filter) {
            $data = $this->_filterData($data, $filter);
        }

        return count($data);
    }
public function getItemCount ( $ filter = true , $ sort = true ) { $ data = $ this -> _loadAllTraversable ( ) ; if ( $ filter ) { $ data = $ this -> _filterData ( $ data , $ filter ) ; } return count ( $ data ) ; }
Calculates the total number of items in a model result with certain filters

@param array $filter Filter array, num keys contain fixed expresions, text keys are equal or one of filters
@param array $sort Sort array field name => sort type
@return integer number of total items in model result
@throws Zend_Db_Select_Exception
Calculates the total number of items in a model result with certain filters