Still struggling 7 months after a miscarriage

I had a miscarriage 7 weeks into my pregnancy. it didn’t bother meat first, but every month I say to myself “I could have been x months pregnant.” I get so sad and honestly depressed. I’m 23 and my husband is in the military. I tell him when I have my moments, but they’ve become more frequent. The pregnancy wasn’t planned, but now I really cant help fill this void. I want to talk to him about trying.. any advice? Please and thank you!