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

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

replace the value of an array or hash field with its count

## NAME

Catmandu::Fix::count - replace the value of an array or hash field with its count

## SYNOPSIS

```
   # e.g. tags => ["foo", "bar"]
   count(tags) # tags => 2
```

## SEE ALSO

Catmandu::Fix
