fix count affine decomposition terms in case of models that don't use EIM