rate limit the counter so it won't go backwards