Returns number of running or stopped jobs etc.