Dimension of a representation