private List<ProcessorTask> convert(final Result<Record> result) {
        return result.map(record -> {
            final Integer processorFilterId = record.get(PROCESSOR_TASK.FK_PROCESSOR_FILTER_ID);
            final Optional<ProcessorFilter> processorFilter = processorFilterCache.get(processorFilterId);
            final ProcessorTask processorTask = RECORD_TO_PROCESSOR_TASK_MAPPER.apply(record);
            processorTask.setProcessorFilter(processorFilter.orElse(null));
            return processorTask;
        });
    }
Count the current number of tasks for a filter matching the specified status.

@param filterId The filter to count tasks for.
@param status   Task status.
@return The number of tasks matching the specified status.
stroom-processor/stroom-processor-impl-db/src/main/java/stroom/processor/impl/db/ProcessorTaskDaoImpl.java