Explain the difference between a mutex and an atomic counter.