$('#element').change(function () {
if (($(this).val().length > 0) {
counter++;
$('#counterSum').val(counter* 900);
} else {
counter--;
$('#counterSum').val(counter* 900);
}
});