Did you ever get an answer to this question?
I am also interested in this, and something similar.
I am have a function that tells me the number of items for each branch of the tree, I need to add that information next to the name of the tree (label), I though i could do that with the html attribute when I am creating the source of the tree, but it is not working.
Ramon