You could do something like this with a Program.
Set the Learner must complete to Some courses and choose 5.