Make the DCP-encode counting dependent on variant.