Change httpMonitorEvent to return the counter value