From what I understand, in a system $S$ described by a canonical ensemble, the probability that $S$ has energy $E$ is equal to $\frac{1}{Z}e^{-E/kT}$, where $T$ is the "temperature", $k$ the Boltzmann constant, and $Z$ the partition function. I have two questions:
1) Is it obvious that $Z = kT$, since $\int_0^{\infty}e^{-E/kT}dE = kT$?
2) I'm failing to understand where the size of $S$ comes into play. Is this energy distribution true whether $S$ is a system containing 1 or $10^{23}$ atoms? I understand that the heat bath should be much larger than either of these, but don't understand how the size of the system doesn't play a role.
I think I'm missing something...