Give your cat plenty of other places to climb and explore, such as cat trees, scratching posts, and window perches.
Cats don't like to be in dirty places, so make sure to wipe down the counter regularly with a cleaner that is safe for cats.
There are a number of products available that can help deter cats from jumping on counters.
You can train your cat to stay off the counter using positive reinforcement.
It's important to be consistent with your training. If you don't consistently enforce the rules, your cat will learn that they can get away with jumping on the counter.
It may take some time and effort to train your cat to stay off the counter. Be patient and consistent, and eventually your cat will learn the rules.
If you're having trouble training your cat to stay off the counter, you may want to consult with a veterinarian or animal behaviorist.