public int taskCount(String connectorName) {
        Integer count = connectorTaskCounts.get(connectorName);
        return count == null ? 0 : count;
    }
Get the number of tasks for a given connector.
@param connectorName name of the connector to look up tasks for
@return the number of tasks
connect/runtime/src/main/java/org/apache/kafka/connect/storage/ClusterConfigState.java