API BNGetNumFriends

Returns info about how much Battle.net friends are added to the friendslist and how much of them are currently online. numBNetTotal, numBNetOnline, numBNetFavorite, numBNetFavoriteOnline = BNGetNumFriends

Returns

 * numBNetTotal : number - amount of Battle.net friends on the friends list
 * numBNetOnline : number - online Battle.net friends
 * numBNetFavorite : number - favorite battle.net friends
 * numBNetFavoriteOnline : number - favorite online battle.net friends

Example
local total, online = BNGetNumFriends print("You have "..total.." Battle.net friends and "..online.." of them are online!")