public int stops() {
        return stopCounter.get();
    }
Get the number of stops.

@return the number of stops
connect/runtime/src/test/java/org/apache/kafka/connect/integration/StartAndStopCounter.java