private function parseCommits(ChurnProcess $process): int
    {
        $output = $process->getOutput();
        preg_match("/([0-9]{1,})/", $output, $matches);
        if (! isset($matches[1])) {
            return 0;
        }
        return (integer) $matches[1];
    }