print queue jobs

Hi,
I have one queue that have status QUEUE and 10 jobs are waiting.Can any one guide me how i can get total number of jobs on this queue.i can see 10 jobs but i need to get count 10 for this queue.Please help me out thanks in advance
sagii

Please post the command you typed and the output.
Also please state you Operating System in case there is a simple dodge by counting spool data files in the spool directory.

hi,
here is the operation system and command with output
AIX version 5
lpstat -pedxxx319,edxxx318 -t -l

Queue Dev Status Job Files PP % Blks Cp Rnk User
------- ----- --------- --- ------------------ ---- -- ----- --- --- ---
QUEUED 974 ddcdev1_df.cfg 76 1 1 root
QUEUED 26 STDIN.118764 1 1 2 root
QUEUED 422 /dev_home/jlevy01/ 1 1 1 jle
QUEUED 564 test.txt 1 1 2 jle
QUEUED 809 /test_pf/rpts/engi 2 1 3 jle
QUEUED 810 /test_pf/rpts/engi 2 1 4 jle
QUEUED 90 /test_pf/rpts/engi 3 1 5 jle
QUEUED 91 /test_pf/rpts/engi 1 1 6 jle
QUEUED 93 /test_pf/rpts/engi 1 1 7 jle
QUEUED 94 /test_pf/rpts/engi 3 1 8 jle
QUEUED 801 /test_pf/rpts/engi 3 1 9 sah
QUEUED 802 /test_pf/rpts/engi 3 1 10 sah
QUEUED 803 /test_pf/rpts/engi 3 1 11 sah
QUEUED 819 /test_pf/rpts/engi 2 1 12 sah
QUEUED 820 /test_pf/rpts/engi 2 1 13 sah
QUEUED 821 /test_pf/rpts/engi 2 1 14 sah
QUEUED 822 /test_pf/rpts/engi 2 1 15 sah
QUEUED 823 /test_pf/rpts/engi 2 1 16 sah
QUEUED 824 /test_pf/rpts/engi 2 1 17 sah
QUEUED 825 /test_pf/rpts/engi 2 1 18 sah
QUEUED 872 /test_pf/rpts/engi 1 1 19 sah
QUEUED 873 /test_pf/rpts/engi 1 1 20 sah
edxxx31 edxxx READY
edxxx31 edxxx READY

-----Post Update-----

ddcdev1 2 % lpstat -pedxxx319,edxxx318 -t -l
Queue Dev Status Job Files PP % Blks Cp Rnk User
------- ----- --------- --- ------------------ ---- -- ----- --- --- ---
QUEUED 974 ddcdev1_df.cfg 76 1 1 root
QUEUED 26 STDIN.118764 1 1 2 root
QUEUED 422 /dev_home/jlevy01/ 1 1 1 jle
QUEUED 564 test.txt 1 1 2 jle
QUEUED 809 /test_pf/rpts/engi 2 1 3 jle
QUEUED 810 /test_pf/rpts/engi 2 1 4 jle
QUEUED 90 /test_pf/rpts/engi 3 1 5 jle
QUEUED 91 /test_pf/rpts/engi 1 1 6 jle
QUEUED 93 /test_pf/rpts/engi 1 1 7 jle
QUEUED 94 /test_pf/rpts/engi 3 1 8 jle
QUEUED 801 /test_pf/rpts/engi 3 1 9 sah
QUEUED 802 /test_pf/rpts/engi 3 1 10 sah
QUEUED 803 /test_pf/rpts/engi 3 1 11 sah
QUEUED 819 /test_pf/rpts/engi 2 1 12 sah
QUEUED 820 /test_pf/rpts/engi 2 1 13 sah
QUEUED 821 /test_pf/rpts/engi 2 1 14 sah
QUEUED 822 /test_pf/rpts/engi 2 1 15 sah
QUEUED 823 /test_pf/rpts/engi 2 1 16 sah
QUEUED 824 /test_pf/rpts/engi 2 1 17 sah
QUEUED 825 /test_pf/rpts/engi 2 1 18 sah
QUEUED 872 /test_pf/rpts/engi 1 1 19 sah
QUEUED 873 /test_pf/rpts/engi 1 1 20 sah
edxxx31 edxxx READY
edxxx31 edxxx READY
QUEUED is under status due copy and past it has been shifted left.Queue and Dev columns are empty, thanks,sagii

-----Post Update-----

ddcdev1 2 % lpstat -pedxxx319,edxxx318 -t -l
Queue Dev Status Job Files PP % Blks Cp Rnk User
------- ----- --------- --- ------------------ ---- -- ----- --- --- ---
QUEUED 974 ddcdev1_df.cfg 76 1 1 root
QUEUED 26 STDIN.118764 1 1 2 root
QUEUED 422 /dev_home/jlevy01/ 1 1 1 jle
QUEUED 564 test.txt 1 1 2 jle
QUEUED 809 /test_pf/rpts/engi 2 1 3 jle
QUEUED 810 /test_pf/rpts/engi 2 1 4 jle
QUEUED 90 /test_pf/rpts/engi 3 1 5 jle
QUEUED 91 /test_pf/rpts/engi 1 1 6 jle
QUEUED 93 /test_pf/rpts/engi 1 1 7 jle
QUEUED 94 /test_pf/rpts/engi 3 1 8 jle
QUEUED 801 /test_pf/rpts/engi 3 1 9 sah
QUEUED 802 /test_pf/rpts/engi 3 1 10 sah
QUEUED 803 /test_pf/rpts/engi 3 1 11 sah
QUEUED 819 /test_pf/rpts/engi 2 1 12 sah
QUEUED 820 /test_pf/rpts/engi 2 1 13 sah
QUEUED 821 /test_pf/rpts/engi 2 1 14 sah
QUEUED 822 /test_pf/rpts/engi 2 1 15 sah
QUEUED 823 /test_pf/rpts/engi 2 1 16 sah
QUEUED 824 /test_pf/rpts/engi 2 1 17 sah
QUEUED 825 /test_pf/rpts/engi 2 1 18 sah
QUEUED 872 /test_pf/rpts/engi 1 1 19 sah
QUEUED 873 /test_pf/rpts/engi 1 1 20 sah
edxxx31 edxxx READY
edxxx31 edxxx READY
QUEUED is under status due copy and past it has been shifted left.Queue and Dev columns are empty, thanks,sagii