Elasticsearch query for fetching count in Singlestat

Hi, I’m using Grafana version 4.4.3 and this is my elasticsearch mapping,

{
“enriched_logs”: {
“aliases”: {},
“mappings”: {
“log”: {
“properties”: {
“authors”: {
“type”: “text”,
“fields”: {
“keyword”: {
“type”: “keyword”,
“ignore_above”: 256
}
}
},
“articles”: {
“type”: “text”,
“fields”: {
“keyword”: {
“type”: “keyword”,
“ignore_above”: 256
}
}
},
“timestamp”: {
“type”: “date”
},
“title”: {
“type”: “text”,
“fields”: {
“keyword”: {
“type”: “keyword”,
“ignore_above”: 256
}
}
}
}
}
},
“settings”: {
“index”: {
“creation_date”: 1513763089541,
“number_of_shards”: 5,
“number_of_replicas”: 1,
“uuid”: “ItbKyb9ZTqCp15YIfDde_w”,
“version”: {
“created”: 5050199
},
“provided_name”: “enriched_logs”
}
}
}
}

Just wanted a query to get the number of articles by particular author in Singlestat.

Please include your ES query and single stat options

This is my single stat screenshots

The articles present duplicates and it is giving the full count. Just wanted to remove the duplicates and count.