public int getSelectedItemCount() {
		return tree.getSelectionCount();
	}
Get the number of selected items in the tree.  These could be either files or folders.

@return the number of selected items in the tree.
Ghidra/Framework/Project/src/main/java/ghidra/framework/main/datatree/ProjectDataTreePanel.java