# Count

## Objective

Provide the number of events within the window defiend by the group by defintion

## Example

```yaml
time window:
  emitting type: slidingCountPrices
  window fucntions:
    px count:
      function:
        count: {}
      attributes: [ ask,bid ]
  policy:
    type: slidingTime
    slide: 500
    window size: 2500
```

### Output attributes

After processing, attributes receive automatically applied postfix ID = `COUNTW`

| Before processing | After processing | Type          |
| ----------------- | ---------------- | ------------- |
| ask               | ask\_COUNTW      | integer value |
| bid               | bid\_COUNTW      | integer value |


---

# 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.fractalworks.io/joule/components/analytics/analytic-tools/analytic-functions/stateless/statistics/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.
