function addLabel(label, self) {
    if (!(label in self.labels)) {
      self.labels[label] = 1;
    }
    else {
      self.labels[label]++;
    }
  }
function addLabel(label, self) {
    if (!(label in self.labels)) {
      self.labels[label] = 1;
    }
    else {
      self.labels[label]++;
    }
  }
function addLabel ( label , self ) { if ( ! ( label in self . labels ) ) { self . labels [ label ] = 1 ; } else { self . labels [ label ] ++ ; } }
Add to the count of classes seen. Instantiate a new object to hold the
classes and counts if it has not been seen yet.
Add to the count of classes seen . Instantiate a new object to hold the classes and counts if it has not been seen yet .