code: function (javaObj) {
          var jvmObject;
          if (javaObj instanceof org.apache.spark.util.StatCounter) {
              jvmObject = javaObj;
          } else {
              jvmObject = new org.apache.spark.util.StatCounter();
          }
          JavaWrapper.call(this, jvmObject);
  
      }
docs: @classdesc
  A class for tracking the statistics of a set of numbers (count, mean and variance) in a
  numerically robust way. Includes support for merging two StatCounters. Based on Welford
  and Chan's [[http://en.wikipedia.org/wiki/Algorithms_for_calculating_variance algorithms]]
  for running variance.
  
  @class
  @memberof module:eclairjs/util