How long after a miscarriage...?

How long after a miscarriage do you have your first period? Or does that count as a period?