Count anagram groups

Group the words below such that anagrams of each other end up in the same group. Print the number of groups.

Liseh Academy
Count anagram groups Coding Challenge | Liseh Academy