Calculate number of procs for test framework