title: How to check if number of elements within parent is even
body: <p>I have HTML in this structure:</p>
  
  <pre><code>&lt;ul class="list"&gt;
      &lt;li&gt;name&lt;/li&gt;
      &lt;li&gt;name&lt;/li&gt;
      &lt;li&gt;name&lt;/li&gt;
      &lt;li&gt;name&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>I want check if the count of <code>li</code> elements is even. How can I use this in an <code>if</code> statement?</p>