Calculate cycles

Do you count from first day of last period or is it from the day your period ended from the previous month?