I use the ideal gas equation of state pV=nRT, solving for n. First I convert the units to the International System: V=10 L=10−2 m3 and p=1,0 atm=1,013⋅105 Pa.
n=RTpV=8,31⋅3001,013⋅105⋅10−2
n=24931013≈0,40 mol
The number of molecules is obtained by multiplying by Avogadro’s number:
N=nNA=0,40⋅6,02⋅1023≈2,4⋅1023 molecules
n≈0,40 mol ;N≈2,4⋅1023 molecules