The current number of messages in the queue can be gotten by querying the queue for all its messages, and looking at the “count” element in the “meta” element. There is no way to pull the stuff in the “meta” element out using the query filters. You do not have to actually get all the messages - every page of results will have the count of all currently spooled messages in its meta section.