Deleted!!!

Deleted!!!

The following blend should do the trick
count.blend
The speed of counting up/down is determined by the pulse interval of the always sensor

Deleted!!!

Alternatively, you can use a python script. You will notice that the logic bricks are much simpler as always when you use python.
countpy.blend