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