Simpler way to limit entries in a .each() loop
<p>I've been wanting to know if there's a good, jQuery-esque way to do the following:</p>

<pre><code>var count = 0;    

$("p").each(function() {
    if (count &gt;= 5)
        return false;

    $(this).toggleClass("highlight");
    count++;
});
</code></pre>

<p>Is there a similar function as <code>each()</code> in jQuery that will allow me to set a limit on how many items it'll loop over, or is this the best way of doing things?</p>
