public static int tokens(EncodingType encodingType, String text) {
        return encode(encodingType, text).size();
    }
Compute the tokens of the specified string through EncodingType.

@param encodingType
@param text
@return Number of tokens
api/src/main/java/com/theokanning/openai/utils/TikTokensUtil.java