How to find the number of elements in element tree in python?
<p>I am new to element tree,here i am trying to find the number of elements in the element tree.</p>

<pre><code>from lxml import etree 
root = etree.parse(open("file.xml",'r'))
</code></pre>

<p>is there any way to find the total count of the elements in root?</p>