counters in es6