[API reference](https://evolu.dev/docs/api-reference) › [@evolu/common](https://evolu.dev/docs/api-reference/common) › [Schedule](https://evolu.dev/docs/api-reference/common/Schedule) › repetitions

```ts
function repetitions<Output, Input>(
  schedule: Schedule<Output, Input>,
): Schedule<number, Input>;
```

Defined in: [packages/common/src/Schedule.ts:1095](https://github.com/evoluhq/evolu/blob/e7144e2bbe9069362b62dec1b64a8aa922b8f1b0/packages/common/src/Schedule.ts#L1095)

Wraps a schedule to output the number of repetitions instead of original
output.

Outputs 0, 1, 2, ... while preserving the underlying schedule's timing and
termination behavior.

### Example

```ts
// Track how many retries occurred
const counted = repetitions(exponential("100ms"));
// Outputs: 0, 1, 2, ... with exponential delays
```