def conversation_count(mailboxId, status, modifiedSince)
      url = "/mailboxes/#{mailboxId}/conversations.json"

      page = 1
      options = {}

      if status && (status == CONVERSATION_FILTER_STATUS_ACTIVE || status == CONVERSATION_FILTER_STATUS_ALL || status == CONVERSATION_FILTER_STATUS_PENDING)
        options["status"] = status
      end

      if modifiedSince
        options["modifiedSince"] = modifiedSince
      end

      conversations = []

      begin
        options["page"] = page
        count = Client.request_count(@auth, url, options)
      rescue StandardError => e
        puts "Conversation Count Request failed: #{e.message}"
      end
    end
def conversation_count(mailboxId, status, modifiedSince)
      url = "/mailboxes/#{mailboxId}/conversations.json"

      page = 1
      options = {}

      if status && (status == CONVERSATION_FILTER_STATUS_ACTIVE || status == CONVERSATION_FILTER_STATUS_ALL || status == CONVERSATION_FILTER_STATUS_PENDING)
        options["status"] = status
      end

      if modifiedSince
        options["modifiedSince"] = modifiedSince
      end

      conversations = []

      begin
        options["page"] = page
        count = Client.request_count(@auth, url, options)
      rescue StandardError => e
        puts "Conversation Count Request failed: #{e.message}"
      end
    end
Conversation Count
 http://developer.helpscout.net/conversations/

 Returns a count for conversations in a mailbox with a given status

 mailboxId      Int       id of the Mailbox being requested
 status         String    Filter by conversation status
 modifiedSince  DateTime  id of the Mailbox being requested

 Possible values for status include:
 * CONVERSATION_FILTER_STATUS_ALL      (Default)
 * CONVERSATION_FILTER_STATUS_ACTIVE
 * CONVERSATION_FILTER_STATUS_PENDING

 Request
  REST Method: GET
  URL: https://api.helpscout.net/v1/mailboxes/{mailboxId}/conversations.json

  Parameters:
   Name           Type      Required  Default  Notes
   page           Int       No        1
   status         String    No        all      Active/Pending only applies
                                               to the following folders:
                                               Unassigned
                                               My Tickets
                                               Drafts
                                               Assigned
   modifiedSince  DateTime  No                 Returns conversations that
                                               have been modified since the
                                               given date/time.

 Response
  Name   Type
  count  Integer  Count of Conversation objects.