Memory optimization by counting points in integer transformations of parametric polytopes