Make eventCounter AtomicLong