Add iter_counter generator to pypb