When you are speaking of the whole vegetable they are countable
Slice the carrot finely. Peel and quarter the potatoes.
When they have been prepared and are considered as substances they become uncountable.
I would like a plate of mashed potato (not mashed potatoes). Add the sliced carrot (regardless of how many you started with as whole carrots) to the soup.