add function to fetch number of messages still in the "outbox"