sh: Use the atomic_t "counter" member