This program can access a given URL and count the number of links to various domains it points to.
Supply the URL as a command line arg in your IDE (in Intellij IDEA, look under 'Edit Configurations' in the run taskbar)
Sample launch command:
mvn package
mvn exec:java -Dexec.args="http://github.com"