Count the number of <div>
<p>Is it possible using jQuery to count the number of div elements?</p>

<p>I have this code:</p>

<pre><code>&lt;div id = "center"&gt;
  &lt;div class ="name"&gt;text text&lt;/div&gt;
  &lt;div class ="name"&gt;text text text ... &lt;/div&gt;
  &lt;div class ="name"&gt;text ...&lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>And get number: 3</p>
