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