making progress towerd function to count friends invited