Dear sir my client is paid the license
When I get number of unread messages, it's always higher, than what I see in my Gmail.
Gmail shows the number of conversations (one conversation can have several emails), not the number of unread email.
You can group your emails by Gmail thread id: https://www.limilabs.com/blog/get-gmail-thread-id