add in a counter to the printing of the url