// This file is autogenerated, DO NOT EDIT
// troubleshooting/troubleshooting-searches.asciidoc:174

[source, python]
----
resp = client.count(
    index="my-index-000001",
    query={
        "exists": {
            "field": "my-field"
        }
    },
)
print(resp)
----
