counter This is a simple counter. The code is a little bit long but the functionality has been achieved. (Idea by Mamunur Rashid)