[ruby-core:114903] [Ruby master Bug#19875] Ruby 3.0 -> 3.1 Performance regression in String#count