Adds signal handling in counter to cleanly stop thread with CTRL + C

Next step :
Add logging support
Adds logging capability to counter.
Simple, but sets the root for later upgrades.