Counting the sum of connections to each endpoint instead of only each
endpoints.