code: public int getNrSelectedFeatures() {
  		int count = 0;
  		for (VectorLayer layer : getVectorLayers()) {
  			count += layer.getSelectedFeatures().size();
  		}
  		return count;
  	}
docs: Return the total number of selected features in all vector layers.
  
  @return number of selected features