Please help!!! Was anyone else prescribed multiple doses of amoxicillin while pregnant?!

Im 22 weeks pregnant and I've taken it about 4-5 times now. My family is saying that's too much. Now I'm freaking out! My OB is giving it to me for group strep B in my vagina