OutOfBounds counter implementation