37 ships were lost in that battle, so I doubt that was the entire Starfleet.
Just the best of Starfleet. I'm certain there were lots of small patrol and recon craft left. Just the biggest ships of the line were destroyed.