When do you start counting ?

When do you start counting how many weeks you are ? Is it from the day of the sex ? or your missed period ? or your last period ?