count running processes, and spawn new sub processes when counts are low