Extra strength (500mg) Tyenol (generic)

I've been having a really bad toothache for the past couple of days and I have been taking the generic tyenol extra strength but I'm just not really sure how many in one day I can take so how many is the safe amount to take in 1 day