I have a list of about 4000+ websites that I need to filter and count. The problem is with the website names... I want to count all the instances of espn.com but the URLs are all different ie. espn.com/nfl espn.com/nba chicago.craigslist.com newyork.craigslist.com. etc

Is there any simple way to sort through this stuff without doing it manually?

Thanks