31 weeks is how many months pregnant?

I think I'm 7 months pregnant but been told I'm 8. Just want to know for sure.