How do I set a minimum number of payments to a plan?

Trying to set a payment plan up with a certain number of payments? 4 weekly payments, 12 monthly payment or 16 fortnightly payments?

While creating a plan you will see the below which will allow you to be able to set up the minimum number of payments you would like for the membership/ contract.
(To select the frequency of these payments, weekly, fortnightly, monthly etc - look for 'How to set payment frequencies')