Sex concerns

How many times do you have to have sex until it stops hurting , so far I’ve only had sex 3 times and all those times my vagina hurt really bad after words , even peeing burnt but then after a few hours went by I was fine .