test the Counter object, make sure we handle IOError