# How to count number of fileds on nested object with Elasticsearch and kibana

**URL:** https://discuss.elastic.co/t/how-to-count-number-of-fileds-on-nested-object-with-elasticsearch-and-kibana/180395
**Category:** Elasticsearch
**Created:** [May 9, 2019, 3:19pm UTC](https://discuss.elastic.co/t/how-to-count-number-of-fileds-on-nested-object-with-elasticsearch-and-kibana/180395 "2019-05-09T15:19:34Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![aeljazouli](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@aeljazouli](https://discuss.elastic.co/u/aeljazouli)
#### Post date: [May 9, 2019, 3:19pm UTC](https://discuss.elastic.co/t/how-to-count-number-of-fileds-on-nested-object-with-elasticsearch-and-kibana/180395/1 "2019-05-09T15:19:34Z")

</div>

Hi there,  
I want to count number of fields on a nested object that matchs a query in order to visualize them on Kibana.

```
{
   "meta":{
      "ID_FICHIER":127745,
      "DATE_APPEL":"2018-10-15'T'17:17:45",
      "SITE":"Casablanca",
      "ID_AGENT":2053280
   },
   "transcription":[
      {
         "confidence":0.985514,
         "word":"madame"
      },
      {
         "confidence":0.633511,
         "word":"non"
      },
      {
         "confidence":0.533511,
         "word":"bon"
      },
      {
         "confidence":0.767069,
         "word":"belle"
      },
      {
         "confidence":0.901756,
         "word":"pizza"
      }
   ]
}

```

For example : How many words have "pizza" value ?

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [June 6, 2019, 3:19pm UTC](https://discuss.elastic.co/t/how-to-count-number-of-fileds-on-nested-object-with-elasticsearch-and-kibana/180395/2 "2019-06-06T15:19:36Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
