EasyRating 1000
Letters in Every Rock
Each rock is a word. Count the letters that appear in every rock.
Input
n, then n words.
Output
One integer.
Sample 1
Input
3 abcdde baccd eeabg
Output
2
Sample 2
Input
1 aab
Output
2
Output appears heren, then n words.
One integer.
3 abcdde baccd eeabg
2
1 aab
2
Output appears here