default @SideEffectFree @NonNegative int remainingTokens() {
        final int count = new StringTokenizer(this.remainingInput(), " ").countTokens();
        // Mirrors the behavior of the old CommandInputTokenizer.
        if (this.remainingInput().endsWith(" ")) {
            return count + 1;
        }
        return count;
    }
Returns the number of remaining tokens.

@return the number of remaining tokens
cloud-core/src/main/java/org/incendo/cloud/context/CommandInput.java