counters in es6

m looking for solution for this 

<pre>
var countr = new(new es6.gen());
</pre>

Rest all is working fine.