Low power ripple pulse counter
Two 74HC4040 or CD4040B will get you 24 bits of count, and three 74HC165 will get you 24 bits of parallel-in serial-out shift, for a total of 5 MCU I/Os, or 4 if you invert one of the RESETs in hardware.