As I see it, the problem is what is counted. As I read the settings for app badges, they are counting NOTIFICATIONS! So the email icon does not count unread emails but unread notifications. When you clear the notification of a new email, the number is reduced even if you did not read the email.