document.links.length
(function(){console.log('document.links.length: '+document.links.length+' ('+location.href+')')})();