"Il peut également accompagner des pâtes ou du riz."
From my experience here, I think it's just always plural. Like "pants" in English! Actually, we usually use "pasta" in a plural sense too. While I can imagine saying "a pasta," like maybe "a pasta that goes well with this wine," you wouldn't generally say "I'm having a pasta."