We perform a simulation with Galacticus, a semi-analytical galaxy formation model, to predict the number counts of H α and [O III] emitting galaxies. With a state-of-the-art N-body simulation, UNIT, we first calibrate Galacticus with the current observation of H α luminosity function. The resulting model coupled with a dust attenuation model, can reproduce the current observations, including the H α luminosity function from HiZELS and number density from WISP. We extrapolate the model prediction to higher redshift and the result is found to be consistent with previous investigations. We then use the same galaxy formation model to predict the number counts for [O III] emitting galaxies. The result provides further validation of our galaxy formation model and dust model. We present number counts of H α and [O III] emission line galaxies for three different line flux limits: 5 × 10⁻¹⁷ erg s⁻¹ cm⁻², 1 × 10⁻¹⁶ erg s⁻¹ cm⁻² (6.5σ nominal depth for WFIRST GRS), and 2 × 10⁻¹⁶ erg s⁻¹ cm⁻² (3.5σ depth of Euclid GRS). At redshift 2 < z < 3, our model predicts that WFIRST can observe hundreds of [O III] emission line galaxies per square degree with a line flux limit of 1 × 110⁻¹⁶ erg s⁻¹ cm⁻². This will provide accurate measurement of large-scale structure to probe dark energy over a huge cosmic volume to an unprecedented high redshift. Finally, we compare the flux ratio of H α/[O III] within the redshift range of 0 < z < 3. Our results show the known trend of increasing H α/[O III] flux ratio with H α flux at low redshift, which becomes a weaker trend at higher redshifts