weeks pregnant

Assuming you've only had sex one time, Are your weeks of pregnancy from last period or the the day you had sex. 
Will a doctor be able to tell you exactly how many weeks you are? 
Will the doctor base it off of last period or day of sex
How long does it take the egg to fertilize. Does that affect the weeks of pregnancy?