Answer :
The number of molecules of gas remain the same. Since the container is sealed and rigid, none of the gas molecules can exit the container as the temperature is increasing. The increase in temperature would just cause an increase in pressure.