add counter for magento extension