src/Process/ProcessSet.php
public function countStatuses(): array
    {
        $statusesCount = [];
        foreach (ProcessWrapper::PROCESS_STATUSES as $status) {
            $statusesCount[$status] = count($this->get($status));
        }

        return $statusesCount;
    }
public function countStatuses(): array
    {
        $statusesCount = [];
        foreach (ProcessWrapper::PROCESS_STATUSES as $status) {
            $statusesCount[$status] = count($this->get($status));
        }

        return $statusesCount;
    }
Get count of processes status