Thanks for your advice. I theory I know how to make it work.
Thae problem is that after reading a lot of threads related to this topic, It's a big messup in my head related to TMR0.
I know that this kind of question are not agreed around here, but... I would really need a working program which can count a few hundred cycles. I am testing it with 16f628a@20MHz
Thanks in advance.