How do you count your pregnancy weeks?

I am sure of my ovulation which was on 15 June, and i had a positive test kn 14 DPO. Does this mean I’m two weeks pregnant? My doctor keep counting from my last period and tell me I am 4 weeks!