---
title: Text Counter
description: Count characters, words, and lines in text.
---

# Text Counter

Count characters, words, and lines in text input.

## Commands

```bash
devv count "hello world"
echo "some text" | devv count
cat document.txt | devv count
```

## Examples

```bash
# Count inline text
devv count "hello world"

# Count a file
cat README.md | devv count

# Count piped output
devv lorem --paragraphs 3 | devv count
```

## Output

```bash
$ devv count "hello world"
Characters: 11
Words: 2
Lines: 1
```

## Pipeline Usage

| Pipeline ID | Description |
|-------------|-------------|
| `text-counter` | Count chars/words/lines |

```bash
devv pipe exec "text-counter" "some input text"
```

### Behavior

**Passthrough** — the original input is forwarded to the next step. The count statistics are displayed but don't replace the data flowing through.
