Dear billzhan,
Thank you so very much! You seem to be a java,html wizard!
Actually I was not clear in mentioning the desired result, sorry for that, but with your code I was able to pull it off! The count need not be recorded or displayed for every increment but only when the counting stops. So no performance issues were encountered!
Thanks once again,
warm regards,