NotesView.EntryCount... works in categorized and flat views, and returns the correct number of documents, not entries (so the categories in a categorized view don't count the way they do if you select them in the UI and look at the selected count in the status bar.)
NotesView.EntryCount... works in categorized and flat views, and returns the correct number of documents, not entries (so the categories in a categorized view don't count the way they do if you select them in the UI and look at the selected count in the status bar.)