If γ be the ratio of specific heats of a perfect gas, the number of degrees of freedom of a molecule of the gas is