Only count jobs in queue or running

Improve grepping for number of jobs (running/queued) in queues