class Counter { constructor() { this.n = 0; } count() { return this.n++; } } export default Counter;