Using jquery .find() to count elements, but ignoring those elements within a particular div
<p>I'd like to find a way to count specific child elements, but ignore any that sit within an element with a specific class.</p>

<p>I'm counting elements using <code>$('.search-me').find('[class*=seI\\-]').length</code> within a div element. This counts all elements that have a class beginning with <code>'seI-'</code>.</p>

<p>I would like to refine this to ignore any matching elements that sit within a child div element, with class <code>'.not-me'</code>.</p>

<p>So given this HTML:</p>

<pre><code>&lt;div class="search-me"&gt;
  &lt;div class="seI-1"&gt;&lt;/div&gt;
  &lt;div class="seI-2"&gt;&lt;/div&gt;
  &lt;div class="not-me"&gt;
    &lt;div class="seI-3"&gt;&lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>would only count seI-1 and seI-2, ignoring any elements within the .not-me class</p>