Never leave food on the counter to start with. Don't tempt them. And every time they jump up there, shove them down. Don't let them up there for ANY reason. Braking habbits are hard. A squirt gun might do it. But you need to change the behavior. Give extra treats on the floor if you have to.