# Counters: count signups and sum revenue from events · Ahem

Source: https://useahem.com/features/counters

1.  [Home](https://useahem.com)
2.  Features
3.  Counters

# Count signups and sum revenue from your events

A counter is a saved question about your events: how many `user.registered` today, or the sum of `metadata.amount` for `payment.*` this week. It compares itself with the same point of the period before, and shows on the project overview and on your phone.

Signups today

42

**▲ 18%** vs this time yesterday

`user.registered`

Revenue this week

$2,184

**▲ 9%** vs this point last week

`payment.received` · sum of amount

Failed payments this month

6

**▲ 50%** vs this point last month

`payment.failed` · error only

Agent tasks done today

17

**▲ 13%** vs this time yesterday

`agent.task_completed`

Counters on a project’s overview, as the web app draws them. More failed payments shows in red. Example numbers.

How it works

## How it works

1.  ### Send the events you already send
    
    Give them a `type`. To add up money or durations, put the number at the top level of `metadata`.
    
2.  ### Add a counter on the overview
    
    Name it, choose count or sum, narrow it by type, channel or level, and pick today, this week or this month. Two starters are ready to edit: signups today and revenue this week.
    
3.  ### Read it anywhere
    
    On the overview in the web app and the phone app, and in a widget on your iPhone’s home or lock screen. In the web app, click a counter to see the events behind it.
    

```
{
  "title": "New subscription: Pro yearly",
  "level": "success",
  "type": "payment.received",
  "metadata": { "amount": 79, "plan": "pro_yearly" }
}
```

A “Revenue this week” counter sums `amount` over `payment.received`. An event without that number adds nothing.

Use cases

## What you can count

### Signups today

Count `user.registered`. The morning question, answered on your lock screen before you open a laptop.

### Revenue this week

Sum `amount` over `payment.*` with a `$` unit. Compare it with this point last week, not with a feeling.

### Failed payments this month

Count `payment.failed` at level error. A rise shows in red, so a bad month is hard to miss.

### Agent tasks done today

Count `agent.task_completed` from a Claude Code or Codex hook. See the [Claude Code guide](https://useahem.com/guides/claude-code-notifications) for the hook.

## Details and limits

<table class="compare two-col" data-astro-cid-uzwt4z5p=""><tbody data-astro-cid-uzwt4z5p=""><tr data-astro-cid-uzwt4z5p=""><th scope="row" data-astro-cid-uzwt4z5p="">Measure</th><td data-astro-cid-uzwt4z5p="">Count events, or sum a number from their metadata</td></tr><tr data-astro-cid-uzwt4z5p=""><th scope="row" data-astro-cid-uzwt4z5p="">Field</th><td data-astro-cid-uzwt4z5p="">A top-level number in <code data-astro-cid-uzwt4z5p="">metadata</code>, such as <code data-astro-cid-uzwt4z5p="">amount</code></td></tr><tr data-astro-cid-uzwt4z5p=""><th scope="row" data-astro-cid-uzwt4z5p="">Filters</th><td data-astro-cid-uzwt4z5p="">Type (with a wildcard: <code data-astro-cid-uzwt4z5p="">payment.*</code>), channel, level. All optional.</td></tr><tr data-astro-cid-uzwt4z5p=""><th scope="row" data-astro-cid-uzwt4z5p="">Period</th><td data-astro-cid-uzwt4z5p="">Today, this week (from Monday) or this month, from your own midnight</td></tr><tr data-astro-cid-uzwt4z5p=""><th scope="row" data-astro-cid-uzwt4z5p="">Compared with</th><td data-astro-cid-uzwt4z5p="">The same point of the period before: this time yesterday, last week, last month</td></tr><tr data-astro-cid-uzwt4z5p=""><th scope="row" data-astro-cid-uzwt4z5p="">Name and unit</th><td data-astro-cid-uzwt4z5p="">A name up to 40 characters; a unit up to 8, such as <code data-astro-cid-uzwt4z5p="">$</code> or <code data-astro-cid-uzwt4z5p="">ms</code></td></tr><tr data-astro-cid-uzwt4z5p=""><th scope="row" data-astro-cid-uzwt4z5p="">How many</th><td data-astro-cid-uzwt4z5p="">Up to 12 per project, on every plan. Owners and admins add them.</td></tr><tr data-astro-cid-uzwt4z5p=""><th scope="row" data-astro-cid-uzwt4z5p="">Who sees what</th><td data-astro-cid-uzwt4z5p="">A member who sees only some channels counts only those</td></tr><tr data-astro-cid-uzwt4z5p=""><th scope="row" data-astro-cid-uzwt4z5p="">History</th><td data-astro-cid-uzwt4z5p="">A counter can only count what your plan keeps: 7 days on Free, so a month counter there covers the last 7 days and a week counter has no last week to compare with. Maker keeps 365 days.</td></tr><tr data-astro-cid-uzwt4z5p=""><th scope="row" data-astro-cid-uzwt4z5p="">Where</th><td data-astro-cid-uzwt4z5p="">Web app overview; the iPhone app, with home- and lock-screen widgets on iPhone</td></tr></tbody></table>

## The rest of the overview

Counters sit at the top of each project’s overview. Below them: events over time by level, your top event types and your top channels, and the number of active people. On Maker, funnels show how many people go from one event to the next, with each step written as an inbox search.

## Compared with a dashboard you build

You can get the same numbers from a SQL query, a Stripe report or a Grafana panel. That works, and it is one more thing to set up and keep running. A counter needs no query and no extra service: it reads the events you already send for notifications. LogSnag has insights that do a similar job; Ahem adds per-channel notification rules and severity levels on the same events.

[Compare Ahem with LogSnag](https://useahem.com/vs/logsnag)

FAQ

## Questions

**Do counters cost extra?**

No. Counters are on every plan, Free included, up to 12 per project. Funnels on the same overview need Maker.

**Can I sum a number that is inside a nested object?**

Not today. A sum reads a top-level number in `metadata`, such as `amount`. Send the number you want to add up at the top level.

**Which time zone does “today” use?**

Yours. A period starts at your own midnight, and a week starts on Monday. Two people in different time zones can see different numbers for the same counter.

**Can I add several currencies together?**

A counter adds the numbers as they are. If you charge in more than one currency, send the amount in one of them, or make one counter per currency with a type or channel for each.

**Is this a replacement for analytics?**

No. Counters answer a few questions you ask every day from the events you already send. For page views, cohorts and retention, keep your analytics tool.

## Related

[Feature · **Get notified for what matters**](https://useahem.com/features/notification-rules) · [Guide · **A notification for every new sign-up**](https://useahem.com/guides/new-signup-notification) · [Pricing · **What Free and Maker include**](https://useahem.com/pricing)

## Send one event with an amount and count it.

[Start free](https://app.useahem.com/sign-in) · [Read the API docs](https://app.useahem.com/docs)
