please try this site
http://www.best-microcontroller-proj...y-counter.html