Switching to int from AtomicInteger.

Trying to reduce contention.