Add setRepeatCount()