Solution needed for counting pulse inputs WITHOUT using Intterupts

Agreed. I was thinking more in the 20 ms on/20 ms off line for 20 ms pulse. That's indeed a case for interrupts.

Nevertheless it should be quite straightforward to implement.