Count measures how many matching events Lago receives during a billing cycle. Use it when each event represents one action you want to measure, such as an API call.

Count calculation method
Configure the metric
Each matching event adds one to the count. You do not need to select an event property. Setrecurring to false. This aggregation does not support carrying the quantity into the next billing cycle. Lago resets the measured quantity at the end of each cycle.
Create the metric
- Dashboard
- API
- Go to Billable metrics in the side menu.
- Create a new billable metric.
- Enter a name, a code and an optional description.
- Select Count as the aggregation type.
- Add filters if you want to group usage by dimensions such as region or provider.
- Click Add billable metric.
Calculation example
The two example events below belong tocontract_example and the same billing cycle. Their timestamps are January 16 and 17, 2027 at 00:00 UTC.
Event 1
Event 2
api_calls metric. Each adds one, so the measured quantity is 2.
Aggregation examples
Compare how aggregation types calculate usage.
Metered products
Connect your metric to a Product.
Create a billable metric (API)
POST /billable_metricsIngest usage
Send usage events to Lago.