@Muddam_Pullaiah To add further, If your requirement is just to know how many messages pass from particular queue, You can use Solace SEMP and run it on specific time to gather Queue level statistics .
i.e
You need to gather Queue level statistics for messages received and delivered via Solace SEMP and run the same on next day, now whatever difference in received and delivered under statistics , that will be your total messages received and sent for queue during those interval.
You can use Crone Job to schedule this.