calculates size of social network

based on each friend request (union find)