extension.js:
 * Added counter
 * Fixed wrong order: foreign and translation