public function _countMessage($queue)
    {
        list($queue, $messageCount) = $this->getChannel()->queue_declare($queue, true);
        return $messageCount;
    }
public function _countMessage($queue)
    {
        list($queue, $messageCount) = $this->getChannel()->queue_declare($queue, true);
        return $messageCount;
    }
public function _countMessage ( $ queue ) { list ( $ queue , $ messageCount ) = $ this -> getChannel ( ) -> queue_declare ( $ queue , true ) ; return $ messageCount ; }
Count messages in queue.

@param string $queue

@return int
Count messages in queue .