Add util to get num messages in queue