---
title: CounterExpression type | Wartiva GraphQL API
description: Counter expression tracking bytes and packets. Wartiva GraphQL API reference with arguments, fields, and examples.
url: https://wartiva.com/api-docs/types/counter-expression.html
updated: 2026-10-07
---

Endpoint configuration · GraphQL type

# `CounterExpression` type

Counter expression tracking bytes and packets.

## Fields

| Field Name | Description |
|---|---|
| `bytes` - [`Uint64!`](https://wartiva.com/api-docs/types/uint64.html) | Number of bytes seen by this counter. |
| `packets` - [`Uint64!`](https://wartiva.com/api-docs/types/uint64.html) | Number of packets seen by this counter. |

## Used by

- [`ChainExpression`](https://wartiva.com/api-docs/types/chain-expression.html) union: A union of all possible nftables chain expression types.

## Example

### Example

```json
{
  "bytes": "8589934592",
  "packets": "8589934592"
}

```

---

Wartiva is in early access. Request access: https://wartiva.com/early-access.html  
All pages: https://wartiva.com/llms.txt
