How to get total number of nodes in a tree

Hi,



I am using dhtmlxtree in my application,

here I need to restrict the find functionality based on the total number of nodes in a tree,

so, Do we have any function to get the total number of nodes in tree?



/Thanks

Raj

There is no such method, but you can use

var count = tree.getAllSubItems(0).split(",").length;