Management beats training here - remove the reward. Every time he counter surfs and gets food, he learns it works. Stop leaving anything accessible. Clear the counters before you cook, put ingredients away between steps, don't leave plates sitting out. A 2-year-old lab has the impulse control to not jump if there's nothing to gain, but he needs consistency from everyone in the house.
Redirect the behavior while you're cooking. Give him a solid down-stay on a mat or bed across the room, then reward that heavily with treats or a frozen Kong. Make being on the mat better than being at the counter. Practice this when you're not cooking too, so it's automatic. Start short sessions and build up duration so he can handle you prepping a whole meal.
If he's jumping anyway, you need an aversive that doesn't come from you - those don't work long-term because he just waits until you're not looking. Motion-activated air sprays pointed at the counter discourage jumping without him associating it with you. Some people also use booby traps like stacking empty cans that fall when he bumps them, but the air sprayer is cleaner. The goal is him learning the counter itself is uncomfortable to approach, not that you're mad.