counters: store counters in shared memory with shm_open() and mmap().