original_string: protected function getModelCount($filter = true)
      {
          if ($this->model && $this->model instanceof \MUtil_Model_ModelAbstract) {
              $totalCount = $this->model->loadPaginator()->getTotalItemCount();
              return $totalCount;
          }
          return 0;
      }
code: protected function getModelCount($filter = true)
      {
          if ($this->model && $this->model instanceof \MUtil_Model_ModelAbstract) {
              $totalCount = $this->model->loadPaginator()->getTotalItemCount();
              return $totalCount;
          }
          return 0;
      }
code_tokens: protected function getModelCount ( $ filter = true ) { if ( $ this -> model && $ this -> model instanceof \ MUtil_Model_ModelAbstract ) { $ totalCount = $ this -> model -> loadPaginator ( ) -> getTotalItemCount ( ) ; return $ totalCount ; } return 0 ; }
docstring: Get the number of items in a specific model, using the models paginator
  @param  array $filter Filter for the model
  @return int Number of items in the model
docstring_tokens: Get the number of items in a specific model using the models paginator