Checking the Number of Licenses MailEssentials Using a Query