title: How do you get the number of elements as an number in cypress?
body: <p>Let's say I have three spans in a div.</p>
  <pre class="lang-html prettyprint-override"><code>&lt;div&gt;
    &lt;span&gt;&lt;/span&gt;
    &lt;span&gt;&lt;/span&gt;
    &lt;span&gt;&lt;/span&gt;
  &lt;/div&gt;
  </code></pre>
  <p>And let's say I have some janky code that counts the number of those spans and outputs the value somewhere else</p>
  <pre class="lang-html prettyprint-override"><code>&lt;p&gt;3&lt;/p&gt;
  </code></pre>
  <p>In cypress I want to get the length of those spans and get the value that I've produced <em>in my janky code</em> and compare the two.</p>
  <p>I've tried <code>cy.get('div span').its('length')</code>, but that yields  the spans as an object...</p>