The noun foam can be countable or uncountable.
In more general, commonly used, contexts, the plural form will also be foam.
However, in more specific contexts, the plural form can also be foams e.g. in reference to various types of foams or a collection of foams.