You can cascade as many of the A cells as you need because the counter"s outputs are synchronous. The B cell accepts the carry bit from the most sigoificant bit. s A cell and provides the clock control that stops the counter. Make sure that the freeze input to the B cell doesn"t get asserted when the clock input is low; otherwise, the counter might make an extra count.