Get value from last arrived data and compare it with 0

Hi guys I'm newby in Elasticserch!!!
I'm getting my data ones per day. And i need to have access to last of it, get value from one of its pole named "Count" and compare it with 0.
Any help highly appreciated!!!