rx: Make statistics interface use Atomics