Added functions for querying number of jobs for a specific task and
total number of tasks.
Merge https://github.com/lauritaipale/queue
Merged in changes from lauritaipale to get count of jobs.