How many tums can i take safely?

Amber

I know the bottle of tums says to only take four in a 24 hour period. But my heartburn get so bad that I take them more often than that probably 6 to 10 in a 24 hour. Does anyone else take a lot or are there any other remedies that work longer and are better for you? im 37 weeks.