Meaning of “counter” - Learner’s Dictionary

counter

adverb uk us /ˈkaʊntər/
be/run counter to sth

to have the opposite effect to something :

The new road plans run counter to the government's aim of reducing pollution.

(Definition of “counter adverb” from the Cambridge Learner’s Dictionary © Cambridge University Press)