---
name: "Catmandu::Cmd::count"
section: "3pm"
platform: "linux"
package: "libcatmandu-perl"
version: "1.2024-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Catmandu::Cmd::count"
---

# Catmandu::Cmd::count(3pm)

count the number of items in a bag

## NAME

Catmandu::Cmd::count - count the number of items in a bag

## EXAMPLES

```
  catmandu count <STORE> <OPTIONS>
  catmandu count ElasticSearch --index-name shop --bag products \
                               --query 'brand:Acme'
  catmandu help store ElasticSearch
```

## SEE ALSO

To count the number of items from an importer, use Catmandu::Exporter::Count.
