Count handling for AttributeExchange extension