Mutex in counter