using atomiccounters for ray stats tracker