title: How to get the number of elements found using Selenium WebDriver with Python?
body: <p>I looked at the documentation located <a href="http://readthedocs.org/docs/selenium-python/en/latest/" rel="nofollow">here</a>, but couldn't find an answer.</p>
  
  <p>I want to get an element by <code>class name</code> or <code>xpath</code> and return the number of instances. There seems to be no available function in Python, such as <code>get_xpath_count()</code>.</p>
  
  <p>Any ideas on how to achieve this?</p>