/** * gets count of formula. defaults to 1.0 * * @return formula count */ public double getCount() { double fCount = 1.0; if (getCountAttribute() != null) { fCount = super.getCount(); if (Math.round((float) fCount) == 0) { fCount = 1.0; this.setCount(fCount); } } return fCount; }