test if a command is already spawned the allotted number of times