When does sex stop hurting

I have had sex about 10times and it still hurts. Any advice / tips or tricks?