title: JQuery Count number of classes where data attribute does not equal a certain number
body: <p>I have a bit of code that loops through to create rows as follows</p>
  
  <pre><code>&lt;div class='link' data-job_id='123456'&gt;
      &lt;div class='holder'&gt;
          &lt;img class=q1 src='first_image.jpg' data-status='1' data-image='1' alt='first_image' /&gt;
          &lt;img class=q1 src='second_image.jpg' data-status='4' data-image='2' alt='second_image' /&gt;
      &lt;/div&gt;//end holder
  &lt;/div&gt;//end link
  &lt;div class='link' data-job_id='456789'&gt;
      &lt;div class='holder'&gt;
          &lt;img class=q1 src='first_image.jpg' data-status='2' data-image='1' alt='first_image' /&gt;
          &lt;img class=q1 src='second_image.jpg' data-status='7' data-image='2' alt='second_image' /&gt;
      &lt;/div&gt;//end holder
  &lt;/div&gt;//end link
  ....etc (this has been greatly simplified)
  </code></pre>
  
  <p>What I am having problems doing is counting the number of <code>link</code> classes where the <code>data-status</code> does not equal 4 and <code>data-image</code> value is 2.</p>