When do you count your Cd1 from? after incomplete miscarriage?

Ive been going through a missed miscarriage for the past 3 weeks, I have finally stopped bleeding, wondering when my cycle would have started from and if safe to now have sex 🤷‍♀️