public function countMessages($queueName)
    {
        list(, $messageCount) = $this->getChannel()->queue_declare($queueName, true);

        return $messageCount;
    }
public function countMessages($queueName)
    {
        list(, $messageCount) = $this->getChannel()->queue_declare($queueName, true);

        return $messageCount;
    }
public function countMessages ( $ queueName ) { list ( , $ messageCount ) = $ this -> getChannel ( ) -> queue_declare ( $ queueName , true ) ; return $ messageCount ; }
Count the number of messages in queue. This can be a approximately number.

@param string $queueName

@return int
Count the number of messages in queue . This can be a approximately number .