count correct number of queued jobs