1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
amount_of_tests = input()
tests = input()

test_group = int(amount_of_tests)//10

res = 0
for i in range(10):
    cur_test = tests[i*test_group: i*test_group+test_group]
    cur_res = 0 if 'N' in cur_test else 1
    res += cur_res

print(res)