How to get the selected node lenght in the tree

HI

I have a query in the DHTML tree.

I wan to get the current selcted node number in the entire tree.

That is if i have 10 nodes in a tree and if i select 5th one of the same, is there any way to get the same.

Regards

Seshu

You can use
var count = mytree.getSelectedItemId().split(",").length;