AEM: add counter length defines