code: function(parser, reporter) {
          "use strict";
          var count = 0;
  
          // count each rule
          parser.addListener("startrule", function() {
              count++;
          });
  
          parser.addListener("endstylesheet", function() {
              reporter.stat("rule-count", count);
          });
      }
docs: initialization