how many moles of 2g h

your question makes no sense to me. If your question is how many moles are in 2grams of hydrogen gas, then

moles=mass/molemassH2= 1 mole