adding CountLatch