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