title: jQuery count how many divs with a class there are and put into string
body: <p>Is there a way in jQuery to count how many divs you have and put that number into a string </p>
  
  <pre><code>&lt;div class="name"&gt;SOME TEXT&lt;/div&gt;
  
  &lt;div class="name"&gt;SOME OTHER TEXT&lt;/div&gt;
  
  &lt;div class="different"&gt;DIFFERENT TEXT&lt;/div&gt;
  </code></pre>
  
  <p>So count the divs with class <code>name</code> and then put that into a string so the output would be this</p>
  
  <pre><code>var strNoDivs = 2
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p>Thanks</p>
  
  <p>Jamie</p>