public int restartTaskCount() {
        return taskIdsToRestart().size();
    }
Get the number of connector tasks that are to be restarted
based upon the {@link #restartRequest() restart request}.

@return the number of {@link Task} instance is to be restarted
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/RestartPlan.java