How do u count DPO?

The day after ur last fertile day? 
Or from the first day of fertility???