Count total docs in CHT

I am trying to get a count of the total number of documents in CHT. I would like to know which dbs I should query to get the total count. So far, I am thinking of medic and _users dbs.

This is the curl command I am using to get the count per db.

curl -L https://username:password@{cht-url}/{db_name}

Hi @iesmail ,
CHT has an API exposed to provide these count. If you browse https://cht-hosted-url/api/v2/monitoring endpoint, you’ll see the document counts for every databases. Here is the api documentation for this. You can check what APIs endpoint are available here.