spotting

hi . my period due 17 but i only have spotting brown then stop .then 18 morning i got real blood but not so much . is spotting count as 1st period or not ? thank you