Flow rate measurement of liquid and gas fractions in oil