Sampling and checking the counter continuously

In reply to Rahul Patel:

Wow! Thanks for the stepwise guide. I did go through various material and cane up with a similar plan. I don’t have any registers though.
Now I am kind of stuck with handling reset on environment side. Will post that as a separate topic.

Thank you!