src/AbstractPool.php
public function aliveCount()
    {
        $count = 0;
        foreach ($this->processes as $process) {
            if ($process->isRunning()) {
                $count++;
            }
        }

        return $count;
    }
public function aliveCount()
    {
        $count = 0;
        foreach ($this->processes as $process) {
            if ($process->isRunning()) {
                $count++;
            }
        }

        return $count;
    }
public function aliveCount ( ) { $ count = 0 ; foreach ( $ this -> processes as $ process ) { if ( $ process -> isRunning ( ) ) { $ count ++ ; } } return $ count ; }
get the count of running processes

@return int
get the count of running processes