How can i get total hits for chart in js?

how i can get total hits for chart in js ?

"hits" : {
"total" : {
"value" : 10000,
"relation" : "gte"
},
"max_score" : 1.0,
"hits" : [
{
"_index" : "scotch.io-tutorial",
"_type" : "cities_list",
"id" : "onVJbHcB0-LUa-_MNUv",
"_score" : 1.0,
"_source" : {
"country" : "AD",
"name" : "Sant Julià de Lòria",
"lat" : "42.46372",
"lng" : "1.49129"
}
},