I am using CollectionViewSource to filter the records displayed in a ListBox. The xaml follows.
You could also do _viewSource.View.Cast().Count() for the filtered list and _viewSource.View.SourceCollection.Cast().Count() for the original.
_viewSource.View.Cast().Count()
_viewSource.View.SourceCollection.Cast().Count()