The noun memory foam can be countable or uncountable.
The singular form of memory foam is also memory foam.