Returns the number of pending messages. Pending messages are
over and above the current number of messages. A pending message is
one that has either been sent in a transaction and not committed,
or been forwarded but has not been acknowledged.