Uses AtomicInteger instead of simples "int"
Merge pull request #1 from ptrouillard/atomic

Uses AtomicInteger instead of simples "int"