How to get the unread messages count in whatsapp web

Hi,

I am trying to automate whatsapp web. I want to know whether any of the chat has unread messages get the no of unread messages of a particular chat. How can this be achieved? I tried using selectors but no luck they keep on changing dynamically.

Thanks in advance

Any Update?