class Capybara::Server::Middleware::Counter

def decrement

def decrement
  @mutex.synchronize { @value -= 1 }
end

def increment

def increment
  @mutex.synchronize { @value += 1 }
end

def initialize

def initialize
  @value = 0
  @mutex = Mutex.new
end