title: count() vs length in Protractor
body: <p>According to the documentation, there are 2 ways to get how many elements are inside the <code>ElementArrayFinder</code> (the result of <code>element.all()</code> call):</p>
  
  <ul>
  <li><code>$$(".myclass").length</code>, documented <a href="http://angular.github.io/protractor/#/api?view=ElementArrayFinder" rel="noreferrer">here</a>:</li>
  </ul>
  
  <blockquote>
    <p>...the array has <code>length</code> equal to the <code>length</code> of the elements found by the <code>ElementArrayFinder</code> and each result represents the result of performing the action on the element.</p>
  </blockquote>
  
  <ul>
  <li><code>$$(".myclass").count()</code>, documented <a href="http://angular.github.io/protractor/#/api?view=ElementArrayFinder.prototype.count" rel="noreferrer">here</a>:</li>
  </ul>
  
  <blockquote>
    <p>Count the number of elements represented by the <code>ElementArrayFinder</code>.</p>
  </blockquote>
  
  <p>What is the difference between these two methods and which one should be preferred?</p>