Add AtomicCounter class.