# Install counts with Homebrew

Tool for ad hoc profiling. Version 1.0.7 via Homebrew; verified 2026-04-14.

## Install

```sh
sudo av install brew:counts
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install counts
```

  Evidence: local Homebrew formula metadata

## Package facts

- **Package key:** brew:counts
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/counts>
- **Version:** 1.0.7
- **Source summary:** Tool for ad hoc profiling
- **Homepage:** <https://github.com/nnethercote/counts>
- **Repository:** <https://github.com/nnethercote/counts>
- **Upstream docs:** <https://github.com/nnethercote/counts#readme>
- **License:** Unlicense
- **Source archive:** <https://github.com/nnethercote/counts/archive/refs/tags/1.0.7.tar.gz>
- **Last updated:** 2026-04-14T10:31:12Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- counts (cli)
- counts (alias)

## Build dependencies

- rust

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.0.7
- Package-manager updated: 2026-04-14
- Local data: ok
- Upstream repository: https://github.com/nnethercote/counts
- Upstream latest detected: 1.0.7 (current)
## Project history and usage

counts is a Rust command-line tool for ad hoc profiling by tallying repeated text lines and presenting frequency and weighted-frequency summaries.

### Project history

The public repository was created in 2018. The README positions `counts` as an improved alternative to the Unix `sort | uniq -c` pipeline for profiling data gathered from logging print statements.

The project reached a 1.0.0 release in 2023 and continued with later 1.0.x releases.

### Adoption history

Official installation is through `cargo install counts`, with Homebrew adding a binary-package route for users who prefer system package managers.

### How it is used

The tool is commonly used by inserting temporary logging into a program, piping or saving those logs, and then using `counts` to aggregate hot paths, loop counts, allocation sizes, or other domain-specific measurements.

The README includes a Firefox heap allocator instrumentation example, showing `counts` applied to millions of log lines and weighted byte totals.

### Why package nerds care

For package nerds, `counts` is interesting because it deliberately packages a Unix-pipeline-shaped workflow as a fast single-purpose Rust binary: no daemon, no config, and no profiler integration required.

### Timeline

- 2018: Public GitHub repository created.
- 2020: 0.1.2 release published.
- 2023: 1.0.0 release published.
- 2026: 1.0.7 release published.

### Related projects

- Rust
- cargo install
- sort
- uniq

### Sources

- <https://github.com/nnethercote/counts>
- <https://api.github.com/repos/nnethercote/counts>
- <https://github.com/nnethercote/counts/releases>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** counts
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [rust](https://www.automicvault.com/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [cargo-flamegraph](https://www.automicvault.com/pkg/brew/cargo-flamegraph/) - Shares av.db curated category or tags: cli, developer-tools, performance, profiling, rust.
- [cargo-bloat](https://www.automicvault.com/pkg/brew/cargo-bloat/) - Shares av.db curated category or tags: cli, developer-tools, profiling, rust.
- [cargo-instruments](https://www.automicvault.com/pkg/brew/cargo-instruments/) - Shares av.db curated category or tags: cli, developer-tools, profiling, rust.
- [flamebearer](https://www.automicvault.com/pkg/brew/flamebearer/) - Shares av.db curated category or tags: cli, developer-tools, performance, profiling.
- [flamegraph](https://www.automicvault.com/pkg/brew/flamegraph/) - Shares av.db curated category or tags: cli, developer-tools, performance, profiling.
- [gprof2dot](https://www.automicvault.com/pkg/brew/gprof2dot/) - Shares av.db curated category or tags: cli, developer-tools, performance, profiling.
- [memray](https://www.automicvault.com/pkg/brew/memray/) - Shares av.db curated category or tags: cli, developer-tools, performance, profiling.
- [py-spy](https://www.automicvault.com/pkg/brew/py-spy/) - Shares av.db curated category or tags: cli, developer-tools, performance, profiling.
- [samply](https://www.automicvault.com/pkg/brew/samply/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, performance, profiling.

## Combined YAML source

View the package source record on GitHub. [combined/counts.yml](https://github.com/automic-vault/db/blob/main/combined/counts.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- cross-ecosystem install command graph
