Use Atomic for thread-safe counting
v0.2.0