(function () {
function MultiCounter (aryStrList) {
this.a = aryStrList;
}
function getCount () {
return this.a.map (function (a) { return this[a]; }, this.v);
}
function countup (str) {
this.v[str] += 1;
}
function reset (n) {
this.v = new Object;
this.a.forEach (function (a) { this[a] = n; }, this.v);
}
function create (aryStrList, val) {
var obj = new MultiCounter (aryStrList);
obj.reset (val || 0);
return obj;
}
MultiCounter.prototype.getCount = getCount;
MultiCounter.prototype.countup = countup;
MultiCounter.prototype.reset = reset;
MultiCounter.create = create;
this.MultiCounter = MultiCounter;
}) ();