original_string: public function getItemCount($filter = true, $sort = true)
      {
          $data = $this->_loadAllTraversable();
  
          if ($filter) {
              $data = $this->_filterData($data, $filter);
          }
  
          return count($data);
      }
code: public function getItemCount($filter = true, $sort = true)
      {
          $data = $this->_loadAllTraversable();
  
          if ($filter) {
              $data = $this->_filterData($data, $filter);
          }
  
          return count($data);
      }
code_tokens: public function getItemCount ( $ filter = true , $ sort = true ) { $ data = $ this -> _loadAllTraversable ( ) ; if ( $ filter ) { $ data = $ this -> _filterData ( $ data , $ filter ) ; } return count ( $ data ) ; }
docstring: 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
docstring_tokens: Calculates the total number of items in a model result with certain filters