or
```ruby
entry_point_count = protocol.values.inject(0) { |i, transition| transition.entry_point ? i + 1 : i }
```