It's a self-rewarding act, and because of that it's hard to cure unless you have a counter that is absolutely clean of food-stuff. Mine never is. I can hear my female in the kitchen when she stands to snarf crumbs off the counter. I just say, "Ciana, get down", she hears me and gets down, but only because there's not much up there to get to.
She's snagged some real prizes from the counter over the years, that's why she keeps doing it. She's gotten a stick of butter, some raw chicken, oh, she likes the knives that I used to cut up meat, too. I can always tell when she hit the jackpot, she goes running out into the yard like a bullet.