Anagram Groups
Group the words so that anagrams are in the same group. How many groups are there?
Input
, then lowercase words, one per line.
Output
The number of groups.
Constraints
, words up to 20 letters.
Sample 1
Input
6 eat tea tan ate nat bat
Output
3