GenericReader: also store the number of frames currently read from the
current pattern as it may change.