Different number of documents Elasticsearch vs Kibana

I have an index and the number of documents when I execute the query http://localhost:9200/_cat/indices?v is different that when I do the complete search for my indices with Kibana.

How is that possible?

Could it be because of the index pattern that is set up in Kibana?

I think -cat/indices?v gives you the number of documents plus sub-documents (if there is any) indexed. To get the correct count I think you change the URL to the index of interest then use _count to get the correct number of documents in the index. You can take a look at the document below but don't add the "query portion"

https://www.elastic.co/guide/en/elasticsearch/reference/2.0/search-count.html