Question : Sendmail queue message count

I have an Ubuntu server running sendmail.
Is there a command to get the current number of messages waiting in the queue?

Currently I use   postqueue -p | wc -l    to count the number of lines in the postqueue command output and divide by three.  Since entry takes up three lines this gives me an approximate count.  I was hoping for a more straightforward and accurate soluton.

Answer : Sendmail queue message count

mailq -v will show total number.
Random Solutions  
 
programming4us programming4us