Add get size() func for JobQueue.