Here's another similar post;
I got an error when I tried shard_size:0 (thinking 0 makes it max out somehow?), but seems to work if I set it large.
Give that a try and see if you get the correct counts with it.
Looks like this;
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.