update empty inputs count on change event
<p>I am counting how many profile field items are empty and dispalying the count as a label. If all fields are complete it will display a tick instead of the count (0).</p>

<p>Like this</p>

<pre><code>$(function() {
    var num = $('input[name^="p-"]').filter(function(){
        return !$(this).val();
    }).length;
    if (num &gt; 0) {
    $('.Personal').prepend('&lt;span class="label label-important" title="&lt;?php _e('Incomplete'); ?&gt;"&gt;'+num+'&lt;/span&gt;');
    } else {
    $('.Personal').prepend('&lt;span class="label label-info" title="&lt;?php _e('Completed'); ?&gt;"&gt;&amp;#10004;&lt;/span&gt;');
    }
});
</code></pre>

<p>I want to update it so that the count is updated as each field is completed, so you will see it count down as you complete the fields.</p>

<p>What is the best way to achieve this?</p>
