added count parameter to getFriendsList