Using atomic counter instead of synchronized is much more efficient due ...

...to eliminated lock contention.