# counter

`import { counter } from "destack:profile";`

Define one statically named profile counter.

```ds title="counter"
export declare function counter(name: string, options?: InstrumentOptions | undefined): Counter
```

[language/library/src/profile/instrument.ds:24](https://github.com/destack-sh/destack/blob/main/language/library/src/profile/instrument.ds#L24)
