Jquery length of matched query
<p>How would I write both of these without using .each() and only using JQuery Selectors?</p>

<pre><code>var xxxx = 0;
$('.clonedInput').each(function(index) {
    if($(this).children().filter(':checked').length == 2)
    xxxx++;
});


var num_normal_foods = 0;
$('[id^="amount_"]').each(function(index) {
    if($(this).val() == '30.00')
    num_normal_foods++;
});
</code></pre>
