Flow rate measurement via isothermal discharge method for hydrogen