# Install counts with Homebrew

Tool for ad hoc profiling. Version 1.0.7 via Homebrew; verified from local package data.

## 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
- **Version:** 1.0.7
- **Source summary:** Tool for ad hoc profiling
- **Homepage:** <https://github.com/nnethercote/counts>
- **Repository:** <https://github.com/nnethercote/counts>
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- counts (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 1.0.7
## 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


## Combined YAML source

View the package source record on GitHub. [combined/counts.yml](https://github.com/mxcl/pkgdb/blob/main/combined/counts.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
