now using AtomicInteger

Using AtomicInteger instead of pointless object for incrementing/decrementing counter.