You need to stop beating yourself up. If someone decides to stop being your friend, that's on them. A true friend would try to work through the problem and get past it.
I'm with Seamore Sandwich on this one, Remember you still have friends here, and it's not about the quantity of friends.. it's about the quality of those friendships and how true they really are