Count and use the same time

Does it compile and run? If you've tested it then what does it do and what doesn't it do that you want it to?

Steve