# 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: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
