I am exploring the option of getting the queue count based on the custom header value in the message. For ex, If I have a queue that has 100 messages - 25 with a custom header "CUSTHDR" and value = "Apple", 25 with header value "Orange" and another 50 with header value "Grapes", I need to be able to get the count of messages in the queue based on the header value. Something like a method that returns 50 when I run GetMessageCount("Grapes");
Any direction is greatly appreciated.