Counter-conditioning is a technique for changing a dog's emotional response to something by pairing it with something the dog already likes. Rather than teaching a new behaviour, it works on shifting how the dog feels about a particular trigger, such as other dogs, the vacuum cleaner, or nail clippers.
If a dog feels anxious around a particular trigger, repeatedly pairing that trigger with something highly valued, often food, can gradually shift the dog's association from negative to positive.