How to show new private message badge on custom ui

Hello,

I have develop a wordpress install that does not use the default admin menus on the front-end. I was wondering if you could tell me how I can receive a new message notification via the system so that I can display it in my custom UI?

Thanks,

Tristan