title: Get the number of elements that are displayed using WebdriverIO v5
body: <p>I tried to get the number of elements that have a certain tag Name, using webdriverIO v5 and Javascript.
  <code>console.log()</code> is printing all of them, but the variable in which the number of the elements is stored has always the value 0. What am I missing?</p>
  <pre><code>confirmSearchingResultPageHasOnlyTenElements() {
          this.searchBox.waitForEnabled(8000, false);
          this.searchBox.setValue('xyz');
          this.searchButton.waitForClickable({ timeout: 8000 });
          this.searchButton.click();
          var results = browser.findElements(&quot;tag name&quot;, 'article').values.length;
          console.log(results)
          expect(results).to.be.equal(10);
          results[3].click();
      }
  </code></pre>