> For the complete documentation index, see [llms.txt](https://docs.bindplane.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bindplane.com/integrations/connectors/count.md).

# Count

#### Description

This connector counts the number of logs, metrics, or traces passing through a pipeline and emits the totals as metrics.

#### Use

Use this connector to:

* Monitor telemetry volume by counting log records, spans, or metric data points
* Track pipeline throughput as metrics

For more advanced counting with filtering, grouping by attributes, or custom metric definitions, use [Signal to Metrics](/integrations/connectors/signal-to-metrics.md) instead.

#### Supported Types

| Metrics | Logs | Traces |
| ------- | ---- | ------ |
| ✓       | ✓    | ✓      |

All input types produce metrics as output.

#### Configuration

| Field           | Description                                                              |
| --------------- | ------------------------------------------------------------------------ |
| Telemetry Types | Select which signal type to count: **Logs**, **Metrics**, or **Traces**. |

#### Default Metrics

The connector emits the following metrics depending on the selected telemetry type:

| Telemetry Type | Metrics Emitted                              |
| -------------- | -------------------------------------------- |
| Logs           | `log.record.count`                           |
| Metrics        | `metric.count`, `metric.datapoint.count`     |
| Traces         | `trace.span.count`, `trace.span.event.count` |

#### Example Configuration

**Count Log Records**

Count all log records passing through the pipeline.

* Telemetry Type: `Logs`

Emits `log.record.count` as a sum metric.

**Count Spans**

Count all trace spans passing through the pipeline.

* Telemetry Type: `Traces`

Emits `trace.span.count` and `trace.span.event.count` as sum metrics.

#### Related Resources

* [Signal to Metrics](/integrations/connectors/signal-to-metrics.md) — For filtered or attribute-grouped counting with OTTL expressions
* [OTel Count Connector Documentation](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/connector/countconnector/README.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.bindplane.com/integrations/connectors/count.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
