Hi, can I get the number of messages in the inbox of an account using rest or soap?

Reason for this is I'm generating an info page that will be shown in the sales room on a large screen, it will show various info from various systems and is programmed in asp and ajax, I'd like to show the number of messages in the sales shared email account so people can see if they need to log into it to deal with messages. The messages are deleted or moved out of the inbox when actioned, so any messages in there, read or not will be something that needs actioning.

I've never used either rest or soap before, so any tips on how to intergrate that into the javascript or asp function would be apprecated.

Thanks.