How to count how many inputs collect this function?
<p>How to count how many inputs collect this function and if is not 4 then displays alert with some information?</p>

<pre><code> $('#dialog').on('show', function () {
        $('form#form_save_account input:visible').each(function(idx, $input) {
            $('#dialog .bank-data .' +  $input.name + ' .value').text($input.value);
        });
    });
</code></pre>
