I dont know the specifics since we only see part of a Domain Model, but what you can do is
- Set the Save action to Call a Microflow
- In the microflow, retrieve the appointments for that docter on that specific day
- Count them
- If the count is 10, show a message to the user and dont save/commit the appointment
- If the count is lower than 10, save/commit the appointment