Building an increment decrement counter