As a general ule, wherever you don’t want a cat, that’s exactly where a cat wants to go. So if you don’t want your cat to jump up on countertops, you need to plan a strategy to keep them away.
Some people use aluminum foil spread on the countertop so when a cat jumps on it, the foil makes unpleasant noise. However, this only works as long as you’re willing to lay aluminum foil all over the place.
On simple solution is to keep countertops free from food and other tempting items so there’s nothing interesting up there. Another is to give your cat a climbing post nearby so it will use the climbing post instead of your countertops. Whatever method you use, the aim is a battle of will against your cat, which means you’ll always lose.