Estimate token count from text. Uses the ~4 chars/token heuristic (accurate within ~15% for English).
int estimateTokens(String text) => (text.length / 4).ceil();