ThreadCount()
Returns the count of email threads in your Gmail account that match the specified Gmail search term.
account: The Gmail account used to pull in this data.
search: The search terms. You can leave this blank to return everything, or use any valid Gmail search, like "is: important"
💡 Hint: For a list of available options, see: Example:
ThreadCount(account, "label:inbox") = 41
ThreadCount(account, "label:inbox has:red-bang") = 3
ThreadCount(account, "label:draft is:unread") = 5