How much Advil can you take post partum?

2 days post partum, at the hospital they were giving me 2 extra strength Advil and 2 tylenols every 4-6 hours I believe. Ive been discharged from the hospital and just bought Advil liquid gels 400 mg. I noticed on the bottle it says do not exceed 3 per 24 hour period but I swear they were giving me like 6 a day at the hospital because it was 2 at a time and I’m still in pain, does anyone know if you can take more than the 3 a day?