Document count is not approximated, so will be accurate. The cardinality aggregation can be exact as long as you have all your data in a single shard. For a discussion on why this is not possible in Elasticsearch as you scale out, have a look at this thread.