# Count Words

> Count words in text using the count_words tool.

- Skill: `erf/count-words` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add erf/count-words`
- Raw SKILL.md: https://api.skillmd.com/api/skills/erf/count-words/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: erf (https://skillmd.com/u/erf)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/erf/count-words

---


# Count Words

A minimal example of a Skill Tool. This skill bundles a `count_words` tool that counts the number of words in a text string.

## Usage

Call the `count_words` tool with a `text` parameter:

```
count_words({ text: "The quick brown fox jumps over the lazy dog" })
```

Returns:

```json
{ "count": 9 }
```

