[dom-count] return document.getElementsByTagName("*").length; [byte-count] return document.documentElement.outerHTML.length;