Código Javascript
:
Ver originalfunction cuenta(boton){
var botones = boton.parentNode.getElementsByTagName("button");
for (var i = 0; i < botones.length; i++) {
if(botones[i] == boton){break;}
}
var span = boton.parentNode.getElementsByTagName("span")[i];
span.innerHTML = Number(span.innerHTML)+1;
}