Create counterDirective.js