title: How to count Elements on Webpage with Java & Selenium
body: <p>my webpage contains several Elements with an xpath locator like:</p>
  
  <pre><code>//li[2]/div/div[2]/div
  //li[3]/div/div[2]/div
  //li[4]/div/div[2]/div
  ...
  ...
  </code></pre>
  
  <p>I need to know how many of those elements are displayed. How can i count them using <code>Java</code> and <code>Selenium</code>?</p>
  
  <p>Thnx</p>
  
  <p>Roland</p>