Returns the number of rows that have been selected in tree.
tree
A TreeSelection.
The number of rows selected.