A simple thread-safe class for incrementing and decrementing a shared integer