When can I TTC?

Just went through a miscarriage and want to know if that counts as a period and when will I be able to TTC again? Any advice would help! Thanks!