Temperature is a measure of the average kinetic energy of the molecules. This means whether the container has 10 molecules or 100 molecules, it's very much possible that the temperature be kept the same.
Let's pretend the average kinetic energy (per molecule) inside the 10-molecule container is 1J. And likewise for the 100-molecule container, since they have the same temperature. The first container is going to have 10 molecules each with 1J, bouncing around, hitting each other and also the walls of the container (which causes force and pressure). The second container has, in comparison, 100 molecules each with 1J bouncing around.
Impact with walls of the second container happens more frequently, as a result there is a greater average force, and thus greater pressure.
Alternatively, you can look at the ideal gas law, PV = nRT.
V is the same, since the volume of the container doesn't change. T is the same, since we're keeping temperature constant. R is a constant. As you add molecules n (the amount of molecules in moles) increases. Therefore the pressure P increases accordingly.