To find a total count of matches via the API, it looks like one would need to iterate over the returned file matches (as each file could have multiple matches?)
Consider adding a total match count to the stats (?stats=true)
"Stats": { "FilesOpened":40, "Duration":78 }