Amount of substance is an SI base quantity; its unit is the mole. Count molecules, do not weigh them.
N = n × NAOne law links pressure, volume and temperature for an ideal gas. T must be the absolute temperature in kelvin.
pV = nRT = NkTPressure is molecules drumming on the walls. Each wall bounce reverses momentum, and that rate of change of momentum is the force.
Compare pV = ⅓Nm<c²> with pV = NkT: temperature is a measure of mean molecular kinetic energy.
½m<c²> = &frac32;kT