Depends what I define as a friend? Come on man don't be so intentionally dense. I define a good friend by the same criteria that most other sensible people do. Loyal, trustworthy, good to be around. Who understand and accept your flaws and like you regardless.
That's a friend. Anything else are social acquaintances, which is also fine and fills a social need, but they are not the people you go to when the poo hits the fan.
Your ability to find and retain these people is dependent on your own character and social skills, as well as the effort you put in to maintain those friendships.
Intentionally dense?

I said I have 2 friends who as you said above, people I can rely on if it hits the fan.
I used to have 3 but one is dead. Funny thing is my daughter was born the day he was buried, so I could not attend his funeral.

Perfectly happy with my own company anyway and I've always been fiercely independent to the point where I hate anyone doing things "for me". That used to cause a lot of friction with my GF but she's since realised it's nothing against her, I just don't like burdening other people with my problems when they have enough of their own!!
