1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
number = int(input())
tests_in_group = number // 10

rozw = input()


res = 0
nie = 0
for i in range(number//tests_in_group):
    nie = 0
    for j in range(0, tests_in_group):
        if rozw[i*tests_in_group + j] == 'N':
            nie = 1
            break

    if nie==0:
        res += 1

print(res)