Message and unread message counts all wrong

I’m a new eMC user on Mac. I have 3 working email accounts set up in eMC. Well, sort of working. The counts of total messages and unread messages in the inbox of every account differs from what is shown via the host web interface. For example, on an Exchange account, the web shows I have 630 messages in my Inbox and 35 unread. EMC shows 361 messages in the Inbox and 26 unread. I have quit EMC and restarted and also told it to send and receive for the account. Example #2: a Gmail account where Gmail web shows about 3238 messages in the inbox with 34 unread. EMC says there are 3378 (140 MORE messages) in the inbox and only 3 unread. My third “working” account is the same way. All accounts are using IMAP and are set to download all mail for all time. Any ideas what to do to get eMC to accurately reflect what I see on the servers? Thanks.