You could do it with the Messenger API, it even has an event that tells when the unread count changes
![:P](images/smilies/msn_tongue.gif)
but some people dont like the messenger api because it causes windows messenger to run in the background...however Plus! uses the api so it's usually already running
![:P](images/smilies/msn_tongue.gif)