ETA: I like Diane's advice. I think you need to figure out if the soiling is her not being fully potty trained (possible and no shame there), to whether there's a physical problem (also possible), to psychological - which can be a result of the physical and the stress of having it at school at this point. One of my children had anxiety as a result of school and having to rush to the washroom to go. Another one of my children had a few pee accidents from having to rush in at recess from the playground because just got too busy playing around that age. It happens. If this repeatedly happens - then of course it becomes stressful.
Then the UTI's are a whole other thing that seems secondary but also upsetting and painful. I think I had one years ago, and that's got to be debilitating to a small child - eight of them???
This is why I'm asking who you've seen. Eight UTI's by age 5 seems very extreme and they should be addressing this more seriously I think, and not leaving it up to you to figure out. There should be a team looking at this I think, and I'm glad they have a counselor involved to guide you on how to help your daughter handle it. Best to you and keep us up to date - other moms/families will benefit.
***************************************
I am not familiar with UTI's in kids and what that has to do with accidents - because my kids didn't get them while in diapers, so I'm confused about the link there. Is she not alerting anyone at school she's had an accident?
I also don't understand how you can be on antibiotics for 6 months as a preventative measure - I'm just not following. My children had chronic ear infections and never took antibiotics for prevention. I didn't think they worked that way.
I personally think you need a second opinion.
I don't know what 'everything is 100' means.
What does "I am now starting counseling' - do you mean for you, for you and your daughter, or for your daughter? How so? Are you assuming her accidents are psychological? Why is this?
I find this question confusing. What doctors/specialists have you seen?