Use a CTE delivered with the delivered orders, then count them (delivered_orders).
delivered
delivered_orders
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.