You can simply have a dictionary that maps URLs to the count of edges coming in, so something like count["
google.com"] = 5. You'll have to go through your list of URLs to build this mapping. It doesn't suffice to just look at one website, because of course you can't see the number of links coming in.