document.observe('dom:loaded', function() {
	var inputs = $$('input.count');
	if (!inputs) return;

	var f = function() {
		if ('1' == this.value) this.value = '';
	}

	var b = function() {
		if ('' == this.value) this.value = '1';
	}

	inputs.each(function(i) {
		i.observe('focus', f);
		i.observe('blur', b);
	});
});