Batch Count
batch_countCount occurrences of a given letter across multiple words, with optional case sensitivity, and receive per-word results and totals sorted by count.
Instructions
Count a letter across multiple words at once.
Efficiently process a list of words.
Args:
words (string[]): Array of words to analyze
letter (string): The letter to count
case_sensitive (boolean): Match case exactly (default: false)
Returns: Results for each word, totals, sorted by count.
Example: batch_count(["strawberry", "raspberry", "blueberry"], "r") → individual and total counts
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| words | Yes | Words to analyze | |
| letter | Yes | The letter to count | |
| case_sensitive | No | Match case exactly |