Diracology's answer is correct in that this is the standard usage of the term "dimension of a representation", but I am guessing that you may be confused simply because there is another plausible meaning the phrase might have, but does not, in the literature.
Recall that a representation $\rho:\mathfrak{G}\to\mathrm{End}(V)$ is a homomorphism between a Lie group $\mathfrak{G}$ and the group $\mathrm{End}(V)$ of linear, homogeneous endomorphisms on a vector space $V$. Example: $\mathfrak{G}$ is often the Lorentz or Poincaré group and $V$ the separable, infinite dimensional Hilbert space of the states of a quantum system and we seek $\rho$ that tells us what unitary transformation our quantum state space undergoes when Poincaré transformations are imparted to the rest frame of the quantum system.
The dimension of this representation is, as discussed in Diracology's answer, $\aleph_0$. Or, in slightly different examples, it could be some finite number: the same as the dimension of the quantum state space in question: the dimension of the vector space $V$.
However, we always demand that $\rho$ should be smooth, so that the group of endomorphisms $\mathfrak{H} = \mathrm{Im}(\rho)\subseteq\mathrm{End}(V)\subseteq GL(V)$ at the pointy end of the homomorphism $\rho$ is also a Lie group. Accordingly, because $\rho$ is a homomorphism, $\mathfrak{H}$'s dimension as a Lie group must be equal to or smaller than that of the original Lie group. This is the second plausible meaning of dimension here, but it is not standard usage to call this number the dimension of the representation. This latter dimension depends on the kernel of the homomorphism. If the kernel is discrete, then $\mathfrak{G}$ is a cover of $\mathfrak{H}$ and the two groups have the same dimension. If the kernel is itself a Lie group, then the $\mathfrak{H}$'s dimension is less than that of $\mathfrak{G}$ such that $\dim(\mathfrak{G})=\dim(\mathfrak{H}) + \dim(\ker(\rho))$.