Get the number of Messages in Queue

Hi,

How can I get the number of messages in a queue using the API?
I am using AssistEdge 19.1.