box Counter {
    init { count }
    
    pack() {
        me.count = 0
    }
    
    increment() {
        me.count = me.count + 1
        return me.count
    }
}

static box Main {
    main() {
        local c = new Counter()
        return c.increment()
    }
}