Background I/O library enhanced so that the main thread can query for the number of pending jobs of the specified type.