Haven't ever heard of barriers as a counter-like primitive (sounds like a semaphore or CountDownLatch)