rate limiting loop did not increment counter