added methods for getting pending and running jobs' count

Changed JobStatDAO.java