Some (possibly most) mass nouns can be considered countable in certain circumstances.
Take water for example.
You'll need a lot of water if you hike in the desert.
Is water a mass noun? Certainly. But now let's say you're in a restaurant with your friends and the waiter asks who wants water. You and four other friends indicate that you want water. The waiter says,
OK, five waters, then.
Water has just become countable, because the word now refers to individual portions of water. It could also refer to different types of water: sparkling water, still water, spring water, salt water, and so on. Substitute another mass noun and the story is the same. Five beers, five soups, whatever.
With respect to society vs. societies, either can be used. In the singular it refers to whatever the present context addresses, most likely the society you currently live in. Or it could also refer to society in general, human or animal, throughout the ages. But if it's plural, it refers to different societies in different times or places, or both. So either usage is grammatical, but you should make sure you're using the right one for the meaning you wish to convey.