`/_cat/count` also supports `/_cat/count/{index}?q=...` for arbitrary queries (with or without an index).