Avoid the counter to increment twice each request