Four bit counter using half adders and D flipflops.