public function count()
    {
        $counts = array_map(function(QueueInterface $queue) {
            return $queue->count();
        }, $this->getQueues());

        return array_sum($counts);
    }
public function count()
    {
        $counts = array_map(function(QueueInterface $queue) {
            return $queue->count();
        }, $this->getQueues());

        return array_sum($counts);
    }
public function count ( ) { $ counts = array_map ( function ( QueueInterface $ queue ) { return $ queue -> count ( ) ; } , $ this -> getQueues ( ) ) ; return array_sum ( $ counts ) ; }
Count of messages in all queues.

@return int
Count of messages in all queues .