Hard
Same Letters Groups
Read a list of words. Words with exactly the same set of letters belong to one group. Print the number of groups.
Input
One line of words.
Output
A count.
Sample 1
Input
abc cab bca aab
Output
2
Sample 2
Input
a b c
Output
3
Output appears here