We present a dimension theory for modules in Add(C), where C is a class of modules with semilocal endomorphism rings satisfying certain smallness conditions. For example, if C is the class of all finitely presented modules over a semilocal ring R, then we get cardinal invariants which describe pure projective R-modules up to isomorphism.