public static double tf(int count){
  return count > 0 ? 1 + Math.log10(count) : 0;
}

public static double tf ( int count ) { return count > 0 ? 1 + Math . log10 ( count ) : 0 ; }
term frequency : 1 + log10 ( count )
