So, if you change the option per comment in the docs, this could be:

```ruby 
else count_type = options[:count]
  count_type == :error ? error_count(validators) : warning_count(validators)
```