How do i find the change in the moles gas for a reaction? example MgCO3 = MgO +CO2

MgCO3(s) ==> MgO(s) + CO2(g)

ngaseous products - n gaseous reactants = delta n.
For this problem it is 1-0 = 1