public function count($queueName = '')
    {
        if (isset($this->queues[$queueName])) {
            return count($this->queues[$queueName]);
        }
        return 0;
    }
public function count($queueName = '')
    {
        if (isset($this->queues[$queueName])) {
            return count($this->queues[$queueName]);
        }
        return 0;
    }
public function count ( $ queueName = '' ) { if ( isset ( $ this -> queues [ $ queueName ] ) ) { return count ( $ this -> queues [ $ queueName ] ) ; } return 0 ; }
Return how many jobs are currently in the queue.

@param string $queueName (optional)

@return int
Return how many jobs are currently in the queue .