simplified CountDownLatch