Gtk.TreeSelection.prototype.count_selected_rows

function count_selected_rows():Number {
    // Gjs wrapper for gtk_tree_selection_count_selected_rows()
}

Returns the number of rows that have been selected in @tree.

Since 2.2

Returns

The number of rows selected.