implemented :repcount feature