Countable:
* When referring to individual pieces of pasta, it's countable. For example: "There are five pasta shapes in this dish."
* When referring to different types of pasta, it's countable. For example: "I tried three different pastas at the restaurant."
Uncountable:
* When referring to pasta as a general food category, it's uncountable. For example: "I love pasta, it's so versatile."
* When referring to a large quantity of pasta, it's uncountable. For example: "There's so much pasta left over."
So, the way you use pasta in a sentence determines whether it's countable or uncountable.