Are you expecting 6 ?
$("#button").click( function(total) {
var newtotal=0,total = 0;
$('.count').each( function() {
var content = $(this).text();
//alert(content);
num = parseInt(content);
// alert(num);
newtotal +=num;
$('#total').html(newtotal);
});
});