# Ajax Query Count

**Displays the total number of results found.**

**Content > Query Settings**

| Setting        | Description                |
| -------------- | -------------------------- |
| **Query Name** | Must match your Main Query |

**Content > General Settings**

| Setting              | Description                     |
| -------------------- | ------------------------------- |
| **Element Tag**      | HTML tag (div, span, p, h1-h6)  |
| **Format Text**      | Text with `%total%` placeholder |
| **Text: No Results** | Message when 0 results          |
| **Text: One Result** | Message when 1 result           |

**Design Settings**

* Layout: Margin, padding, text alignment
* Typography with number styling (font weight, color)

**Usage Example**

```
1. Add Ajax Query Count
2. Query Name: "blog-posts"
3. Format Text: "Found %total% results"
4. Text: No Results: "No posts found"
5. Text: One Result: "Found 1 post"

Output: "Found 42 results"
```


---

# 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.woohoo.dance/ajax-filters/elements/ajax-query-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.
