Contractions

What's the general rule with having contractions before you should go to the hospital? Currently counting bc they woke me up hurt so bad.. Right now I've had 6 since 2:21am on average they are 5min23sec apart