Select paragraph using jquery
<p>I have a list of <code>&lt;p&gt;</code> inside a <code>&lt;div id="someDiv"&gt;</code></p>

<p>I use this code to hide all <p> in the div except the first one</p>

<pre><code>$("#someDiv p:not(:first)").hide();
</code></pre>

<p>I want to change the code to do the following:</p>

<p>Check if <code>&lt;p&gt;</code> inside <code>&lt;div id="someDiv"&gt;</code> is more than 5. If it is, hide all div except first 4 ones.</p>

<p>How to write jQuery?</p>
