How do I get the count of all messages in the inbox? How can I get the count of all the inbox messages, with the Private message module?

Below the inbox messages, I need to display the count of total messages, such as:


  10 of 55


_privatemsg_get_new_messages() is the function to get new messages in Drupal 5.

Is there any function to get the count of all messages in Drupal 6?
There is a privatemsg_unread_count() function in Drupal 7. If that doesn't work in Drupal 6, check the module file for the name of the function.