[incomplete] implmentation of 'counted_iterator'