You count from the 1st day of bleeding, to the following cycles 1st day of bleeding. Ovulation
occurs 14 days before the menstrual cycle
starts, so your ovulation occurs on day 15 (when the cycles are 29 days apart) on day 16 if they are 30 days, and day 17 for 31 day cycles. Plan accordingly! ;-).