added methods for getting pending and running jobs' count