When ringing up a customer, a cashier needs 18 seconds to process payment as well as 1 second to scan each item being purchased. If it takes 20 seconds to ring up a customer, how many items are being purchased?​