This method of the PermissionTreeOutput Class retrieves the number of elements in the tree.
public int count();
Returns the number of elements in the tree.