fixed repetition counter in -p mode