Bubble number density and vapor generation in flashing flow