I want count of records even if there are more than 10k records in result

I am using join query of siren with size=0 just to use the count of the result set. And if the result set if more than 10k it is going to just display

In plain elasticsearch API we can use _count API for this use case. Is there any way I can do this with siren APIs?

I found the solution. I can use the elasticsearch "track_total_hits": true for this use case