@property
    def count(self):
        c = 1

        if self.action_count:
            c = int(self.action_count) or 1

        if self.motion_count:
            c *= (int(self.motion_count) or 1)

        if c < 1:
            raise ValueError('count must be positive')

        return c
Try to reap a process (without blocking) via waitpid.
dataset/ETHPy150Open guillermooo/Vintageous/state.py/State.count--crossover with--dataset/ETHPy150Open twisted/twisted/twisted/internet/process.py/_BaseProcess.reapProcess