I think it would be quite unusual to treat vegetables as uncountables, even in cooking. I'm sure some people do it, but I think you will be more likely to be correct if you continue to treat them as countables.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.