Add helper method for counting urls