Unread message count in Notes API

I am looking to add a portlet that gets the count of unread messages from a User’s Inbox. Is there a parameter or method in Notes API to do so, I was referred to a URL where I parse the XML content to arrive at the number which is kind of slow. Appreciate your suggestion.