# admin\_filter\_count

Source: https://zotonic.com/docs/2759/admin_filter_count

URI: https://zotonic.com/id/2759

Language: en



Count active filters in admin overview query arguments, for example to display the number of selected filters on the overview's Filter button.

```django
{{ q.qargs|admin_filter_count }}
```

The input is a list of query argument pairs with binary keys. Values of `undefined`, an empty binary, or an empty list are not counted. Zero and `false` are active filter values. Sorting, pagination, and the query-argument marker are excluded: `qsort`, `qzsort`, `qpage`, `qpagelen`, and `qargs`.

An undefined input returns zero. Each remaining nonempty argument counts once; repeated keys are not deduplicated, and a list-valued argument counts as one filter regardless of how many values it contains.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/2759?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/2759?language=en>)
