Testing Counter
nClass specifications:
n
npublic class Counter
n A simple integer counter.
npublic Counter ()
n Create a new Counter initialized to 0.
npublic int count ()
n The current count.
n ensure:
n this.count() >= 0
npublic void reset ()
n Reset this Counter to 0.
npublic void increment ()
n Increment the count by 1.
npublic void decrement ()
n Decrement the count by 1. If the count is 0, it is not decremented.