Also check for total number of jobs on queue

qlong for instance can support only 1000 jobs in total