Reset counter in __iter__