The API does return a total value, in the new Helix API it’s the total field, and the old API has a _total field.
total
_total