inside composed operations: count increment and compare MUST be atomic.