added methods for getting pending and running active jobs' count