public function get($name)
    {
        $process = Process::fromShellCommandline('exec ps aux | grep '.static::$command, null, ['COLUMNS' => '2000']);

        $process->run();

        return substr_count($process->getOutput(), 'supervisor='.$name);
    }
public function get($name)
    {
        $process = Process::fromShellCommandline('exec ps aux | grep '.static::$command, null, ['COLUMNS' => '2000']);

        $process->run();

        return substr_count($process->getOutput(), 'supervisor='.$name);
    }
public function get ( $ name ) { $ process = Process :: fromShellCommandline ( 'exec ps aux | grep ' . static :: $ command , null , [ 'COLUMNS' => '2000' ] ) ; $ process -> run ( ) ; return substr_count ( $ process -> getOutput ( ) , 'supervisor=' . $ name ) ; }
Get the number of Horizon workers for a given supervisor.

@param  string  $name
@return int
Get the number of Horizon workers for a given supervisor .