Wasn't able to find any documentation on listing the names of the queues and their message counts on the RabbitMQ Bunny docs. I have been able to extract the names and counts using this commandline result if my rabbitmq-server is on the same server as the code
sudo /usr/sbin/rabbitmqctl list_queues
My rabbitmq server would be running on a different server. Any help would be much appreciated.