apply soft-filter to count(), max() and min(). closes #288