private void executeInsert(final BatchBindStep batchBindStep, final int rowCount) {
        try {
            LOGGER.logDurationIfTraceEnabled(
                    batchBindStep::execute,
                    () -> LogUtil.message("Execute for {} rows", rowCount));
        } catch (final RuntimeException e) {
            LOGGER.error(e::getMessage, e);
            throw new RuntimeException(e.getMessage(), e);
        }
    }
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