Solution needed for counting pulse inputs WITHOUT using Intterupts

And there I was... assuming it's yet another school assignment where an unusual/unsuitable solution is to be used to demonstrate the teacher you can do it.

At 20 ms pulses, unless you need to know exactly when they happen or so, you shouldn't even need interrupts. Just poll the pin and do state checking.