Pains at top of stomach?

Anyone had this yet? Felt like stitch at the top of my stomach - 3/4 waves lasting 1-2 mins - was bad enough to need paracetamol! I wondered if I had pulled a muscle in the night but midwife says could be getting ready for labour! 37+6 today!