How to determine how many lines are selected in view?

I am trying to build an export function that exports all the lines that the user selects in a view. Most of the lines will not be at the document level, but instead categorized rollups.

Is there a variable the shows how many lines are selected. The UnprocessedDocuments.count doesn’t do it for me as it only shows the number of actuals documents selected, I need the number of lines selected in the view.

I have to believe it is somewhere because Notes shows the “# documents selected” in the status bar at the bottom of the Notes window - that’s the number I need.

Thanks,

Mike