I think this is the right way to do counted repetition