title: How to get total count in root.iter() in ElementTree
body: <p>I am XML file, there are 10 sub-children (same hierarchy) of root, having the name 'testCase'</p>
  
  <p>I am not able to figure out the following: 
  Firstly, I am doing the following to get all the sub-children: </p>
  
  <pre><code>for testCase in root.iter('testCase'):
  </code></pre>
  
  <ol>
  <li>I need to get some attribute from the last sub-child 'testCase'. But how do i know that it is the last 'testCase'. Is there a way to count them?</li>
  <li>Also, is there a way to access the nth sub-child without having to go through the iter()?</li>
  </ol>