private ResultPage<ProcessorTask> convert(final ExpressionCriteria criteria,
                                              final Result<Record> result) {
        final List<ProcessorTask> list = convert(result);
        return ResultPage.createCriterialBasedList(list, criteria);
    }
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