Implementing the countdown latch