ENH: Count number of selected nodes. Added progress bar.