<div></div><div></div>
<b></b><br><br>
<script>
var elements = document.getElementsByTagName('*');
var info = {};
for (var i = 0, element; i < elements.length; i++) {
element = elements[i];
if (!info.hasOwnProperty(element.tagName)) {
info[element.tagName] = 0;
}
info[element.tagName] += 1;
}
for (tagName in info) {
if (info.hasOwnProperty(tagName)) {
document.write('Element - ' + tagName + ', length - ' + info[tagName] + '<br>');
}
}
</script>