Mass flow measurement of gases