The Customer Order Count trigger will allow you to create a rule based on how many previous orders have been placed by a customer.
This number originates from Shopify store data and will not work the same in other store platforms. Automation rules run when the order is generated.
Orders generated before the creation of an automation rule will not be affected retroactively.