Counter object with mocha/chai tests