pop3_count_messages is available since version 1.0.
Prototype:
number pop3_count_messages(number pop3_handle)
Description:
Gets the number of messages on the POP3 server.
Return value:
Returns the number of messages on the POP3 server, or -1 if an error was encountered. To get that error you may call
pop3_error.