In Zoho Desk using API calls is there an easy way to query the total number of tickets?

In Zoho Desk using API calls is there an easy way to query the total number of tickets?

If I knew the total number of tickets, I could keep looping, retrieving records till I reach that limit.

Or,

What would be the most efficient way to loop though making multiple record requests until you have retrieved all of the tickets in the database?

Thanks,