Implement workItemCount

workItemCount allows us to $wgJobBackoffThrottling with some degree of
accuracy.

Change-Id: Ie4d9e654c494da78ca2939da2946719a85bc51f2
Merge "Implement workItemCount"