original_string: protected function getCountForModel($modelClass)
      {
          if ( ! is_a($modelClass, Model::class, true)) {
              throw new UnexpectedValueException("'{$modelClass}' is not an Eloquent model class.");
          }
  
          return $modelClass::withoutGlobalScopes()->count() ?: 0;
      }
code: protected function getCountForModel($modelClass)
      {
          if ( ! is_a($modelClass, Model::class, true)) {
              throw new UnexpectedValueException("'{$modelClass}' is not an Eloquent model class.");
          }
  
          return $modelClass::withoutGlobalScopes()->count() ?: 0;
      }
code_tokens: protected function getCountForModel ( $ modelClass ) { if ( ! is_a ( $ modelClass , Model :: class , true ) ) { throw new UnexpectedValueException ( "'{$modelClass}' is not an Eloquent model class." ) ; } return $ modelClass :: withoutGlobalScopes ( ) -> count ( ) ? : 0 ; }
docstring: Returns total count for a model classname.
  
  @param string $modelClass
  @return int
docstring_tokens: Returns total count for a model classname .