Counting pulses and using them

Thank you Outsider!, i will try and i will let you know!