When to see doc for fertility issues

Probably a dumb question, but I got pregnant in June (first cycle ttc #2) and sadly had a miscarriage in August. I know you have to wait 12 months before a doc will see you for testing, but would my 12 month window start as of June or August? (It took 8 cycles to get pregnant with #1.)