ok allora andiamo a tentativi...

window.onload = function(){
var elem = document.getElementsByTagName("h2");
alert(elem.length)
}