How to make one of the CD4040 output pins reset another counter?
The short loop delay pulse duration is insufficient for your 4xxx series CMOS which is much slower than 4040 . Even though 74HCxx logic family is much faster, you still need to stretch the pulse by adding feedback delay.