If the material is non-aqueous, such as a vegetable oil, and if it is desired to compensate the results for moisture present, as known from laboratory analysis, then the known inflow and outflow moisture contents are programmed into the circuits so that pulses representing such moisture content are subtracted in the counting process.