title: Nightwatch elementCount before an amount of time
body: <p>Trying to test with <code>Nightwatch.js</code>, that a dropdown has a given number of items before a certain amount of time.</p>
  
  <p>On way is to :</p>
  
  <pre><code>browser
    .pause(300)
    .assert.elementCount('#project_switch .dropdown-item', 3)
  </code></pre>
  
  <p>But this is ugly, forcing to spread so many <code>.pause(value)</code> in the test code thus making the e2e test far longer than what is necessary!</p>
  
  <p>I think I should switch from <code>browser.assert</code> to <code>browser.expect</code> which offers the <code>before(ms)</code> but what is the way to count the elements with <code>browser.expect</code> ?</p>