Count & get filtered items.

Add the ability to count & retrieve filtered items. If you need to get the number of non-processed items you can call $workflow->getFilteredItems().
Ideally, to keep API consistent there should be a getProcessedItems() method based on $count, but that's out of the scope of this PR