# File lib/merb-core/dispatch/router/behavior.rb, line 22
        def count_parens_up_to(string, pos)
          string[0..pos].gsub(/[^\(]/, '').size
        end