magento2 – How can I configure the USPS sending so that options are offered only if attention is paid to a certain number of items?

How can I set up the USPS shipment so that options are offered only if attention is paid to a certain number of items?

I am using USPS for shipping and I want you to use a small fixed rate box if there are 5 items in the cart. Then, if there are more than 5, it would only give the option of a medium flat rate chart. Then, finally, more than 10 a large flat rate chart. How could I configure the USPS magento shipment to do this?

I'm on Magento 2.3 base