How to check if there are a great deal of deferred messages in ServiceBus container DB generated by your workflow

The problem: Your workflow may stop working with the following exception which usually indicates a great deal of messages accumulated in ServiceBus container database. Microsoft.Workflow.Client.WorkflowQuotaExceededException: Cannot start more instances because the size of the topic has exceeded the quota limit   Troubleshooting: First, you should check the number of rows in ServiceBus container database MessageReferencesTable. If there…