It is preferable to have a few close friends rather than a large group of friends with whom you do not feel as close. As you get older, you realize that these are silly standards developed by silly people. Popularity means nothing in the future, so keep your head up and embrace what you have.
You are a wonderful person. You don't go to school to impress others, after all. You attend school to learn!