public void calculateResults() {
        resetCounts();
        for (URL url : urls) {
            if (url.getURLType() == URLType.Page) {
                sumPages++;
            }
            else if (url.getURLType() == URLType.Document) {
                sumDocuments++;
            }
            else {
                sumMedia++;
            }
        }
        sumTotal = urls.size();
    }