The difference is the use of the being verb in the second example. In the first example, "friends" is the subject of the sentence. " " How few friends he has is hard to tell" works fine.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.