The number of molecular orbitals will be equal to the total number of atomic orbitals from the constituent atoms of the molecule. So, for example, each N atom has 5 atomic orbitals (1s, 2s, 2px, 2py, and 2pz) so N2 has 10 molecular orbitals (σ1s, σ*1s, σ2s, σ*2s, σ2pz, σ*2pz, π2px, π*2px, π2py, and π*2py).