In this rule

Historical Rules · 25 September 2014

Rule 704.5r

Official source text from the 25 September 2014 Rules release

If a permanent has both a +1/+1 counter and a -1/-1 counter on it, N +1/+1 and N -1/-1 counters are removed from it, where N is the smaller of the number of +1/+1 and -1/-1 counters on it.

Find this number in the current Rules