counter

Azhar:
sir can you please give me a demo code i am totally a begginer

See this post (Using millis for timeing. A beginners guide)for a demo. There are others too. Such as Blink without delay.