In preparation for multithreading this application, we need to make sure the variable that holds the current process count is local to the thread, and then saves it to the master at the end.