Currently there is a bug with the “COUNT_ONLY” flag listing mails.
Solution: Use the list mails service without this flag.