Is there a way to count the number of elements of a certain name in an xml file using Python?
<p>I'm using Python 3.4 on a Windows 64-bit machine.</p>

<p>I currently have a xml file which has multiple hierarchies. There are a number of elements going by the name "paragraph" in the xml tree. But they might be on different hierarchies. </p>

<p>Is there any way to count the number of these elements in an easy way? Traversal through the whole tree seems way too time-consuming.</p>