Count the number of child elements in Appium UIAutomator
<p>I am doing an automation project in seleium and I need to get the number of elements that my action bar contains. 
I am getting using appium and UI automator for this. 
Below is the screenshot of the element. 
<a href="https://i.stack.imgur.com/GCGhN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GCGhN.png" alt="enter image description here"></a>
Now, I wish to get the list(or count) of the children elements of the the DriverLayout. </p>

<p>I am using </p>

<pre><code>String actionbarlayout = "android.support.v4.widget.DrawerLayout";
WebElement li = driver.findElementByClassName(actionbarlayout);
</code></pre>

<p>Any idea how can I get the nodes/elements list from <code>li</code> ?
Thanks a lot.</p>