Add remote function to query the number of pending jobs in the jobqueue
Add remote function to query the number of pending jobs in the job queue.