How to check the number of licenses MailEssentials queries