return friend_count after register and login