I may be missing something but if the objective is to perform a sort of log shipping I would expect the usage of the from
checkpoint approach and no need for a total log count. Nonetheless, based on the documentation in the API explorer for the logs endpoint you can perform a search by criteria (with a criteria that matches everything) and then use the include_totals
option so that the response contain information about total log count.