A simple recommendation system would recommend a user things liked by a certain number of their friends. In this problem you will implement part of such a system.

You are given user's friends' opinions about a list of items. You are also given a threshold T — the minimal number of "likes" necessary for an item to be recommended to the user.

Output the number of items in the list liked by at least T of user's friends.


-----Input-----

The first line of the input will contain three space-separated integers: the number of friends F (1 ≤ F ≤ 10), the number of items I (1 ≤ I ≤ 10) and the threshold T (1 ≤ T ≤ F).

The following F lines of input contain user's friends' opinions. j-th character of i-th line is 'Y' if i-th friend likes j-th item, and 'N' otherwise.


-----Output-----

Output an integer — the number of items liked by at least T of user's friends.


-----Examples-----
Input
3 3 2
YYY
NNN
YNY

Output
2

Input
4 4 1
NNNY
NNYN
NYNN
YNNN

Output
4

Difficulty: HARD

Solutions:
n = 1
kitten = 0
(a, b, t) = map(int, input().split())
v = [0] * b
for i in range(a):
	ch = str(input())
	for j in range(b):
		if ch[j] == 'Y':
			v[j] += 1
for j in range(b):
	if v[j] >= t:
		kitten += 1
print(kitten)


d = [0] * 1000
ans = 0
(n, m, k) = map(int, input().split())
for i in range(n):
	s = input()
	for j in range(m):
		d[j] += s[j] == 'Y'
		ans += i == n - 1 and d[j] >= k
print(ans)


(n, kitten, t) = map(int, input().split())
a = [str(input()) for i in range(n)]
q = 0
for i in range(kitten):
	l = 0
	for j in range(n):
		if a[j][i] == 'Y':
			l += 1
	if l >= t:
		q += 1
print(q)


y = input
r = range
(n, m, k) = (int(x) for x in y().split())
cnt = [x // 11 for x in r(11)]
for i in r(n):
	x = y()
	for j in r(m):
		if x[j] == 'Y':
			cnt[j] += 1
sum = sum((1 for x in cnt if x >= k))
print(sum)


(F, I, T) = map(int, input().split())
a = [0] * I
for i in range(F):
	a = map(sum, zip(map(lambda x: int(x == 'Y'), input()), a))
print(sum((int(x >= T) for x in a)))


(n, m, k) = map(int, input().split())
a = [0] * 99
for i in range(n):
	s = input()
	for j in range(m):
		a[j] += s[j] == 'Y'
print(len(list(filter(lambda x: x >= k, a))))


(f, I, t) = input().split()
f = int(f)
I = int(I)
t = int(t)
s = []
a = 0
for i in range(f):
	s.append(input())
for i in range(I):
	x = 0
	for j in range(f):
		if s[j][i] == 'Y':
			x = x + 1
	if x >= t:
		a = a + 1
print(a)


from sys import stdin
c = [0] * 22
(f, i, t) = map(int, stdin.readline().split())
kitten = 0
for v in range(f):
	s = stdin.readline()
	for j in range(i):
		if s[j] == 'Y':
			c[j] += 1
for v in range(i):
	if c[v] >= t:
		kitten += 1
print(kitten)


s = input().split()
(f, i, t) = (int(s[0]), int(s[1]), int(s[2]))
x = [''] * f
for p in range(f):
	x[p] = input()
kitten = 0
for i2 in range(i):
	cnt = 0
	for p in range(f):
		if x[p][i2] == 'Y':
			cnt += 1
	if cnt >= t:
		kitten += 1
print(kitten)


(n, m, t) = map(int, input().split())
go = []
for i in range(n):
	go.append(input())
cnt = 0
for j in range(m):
	x = 0
	for i in range(n):
		if go[i][j] == 'Y':
			x += 1
	if x >= t:
		cnt += 1
print(cnt)


from sys import stdin
(F, I, T) = map(int, stdin.readline().rstrip().split())
q = [0] * 20
c = 0
for f in range(0, F):
	s = stdin.readline()
	for i in range(0, I):
		if s[i] == 'Y':
			q[i] += 1
for i in range(0, I):
	if q[i] >= T:
		c += 1
print(c)


Q = input
(F, I, T) = map(int, Q().split(' '))
A = [0] * I
X = range
for i in X(F):
	a = Q()
	for j in X(I):
		A[j] += a[j] == 'Y'
print(sum([x >= T for x in A]))


(f, l, t) = map(int, input().split())
m = [input() for i in range(f)]
a = 0
for j in range(l):
	s = 0
	for i in range(f):
		if m[i][j] == 'Y':
			s += 1
	a += s >= t
print(a)


(n, m, k) = map(int, input().split())
c = [0 for i in range(m)]
import sys
a = 0
for s in sys.stdin:
	for i in range(m):
		if s[i] == 'Y':
			c[i] += 1
			if c[i] == k:
				a += 1
print(a)


(fr, inve, tr) = map(int, input().split())
op = [input() for i in range(fr)]
print(len(list(filter(lambda t: len(list(t)) >= tr, [filter(lambda x: x == 'Y', s) for s in zip(*op)]))))


(F, I, T) = input().split()
F = int(F)
I = int(I)
T = int(T)
kitten = 0
acum = 0
v = [0] * I
for i in range(0, F):
	line = input()
	for j in range(0, I):
		if line[j] == 'Y':
			v[j] += 1
for j in range(0, I):
	if v[j] >= T:
		acum += 1
print(acum)


n = list(map(int, input().split()))
v = [0] * n[1]
for i in range(n[0]):
	s = input()
	for j in range(n[1]):
		if s[j] == 'Y':
			v[j] += 1
r = 0
for i in range(n[1]):
	if v[i] >= n[2]:
		r += 1
print(r)


(F, I, T) = map(int, input().split())
s = []
for i in range(F):
	s.append(input())
a = 0
for i in range(I):
	c = 0
	for j in range(F):
		if s[j][i] == 'Y':
			c += 1
	if c >= T:
		a += 1
print('{}'.format(a))
t = 'kitten'


(n, m, t) = map(int, input().split())
ans = 0
f = [0] * n
for i in range(n):
	f[i] = input()
for j in range(m):
	likes = 0
	for i in range(n):
		if f[i][j] == 'Y':
			likes += 1
	if likes >= t:
		ans += 1
print(ans)


(g, k, t) = map(int, input().split())
a = []
for i in range(g):
	a.append(input())
r = 0
for j in range(k):
	cnt = 0
	for i in range(g):
		if a[i][j] == 'Y':
			cnt += 1
	if cnt >= t:
		r += 1
print(r)


(f, I, T) = map(int, input().split())
s = []
for i in range(f):
	s.append(input())
print(sum((sum((s[i][j] == 'Y' for i in range(f))) >= T for j in range(I))))


(f, kitten, n) = map(int, input().split())
a = zip(*[input() for _ in range(f)])
print(sum((sum((f == 'Y' for f in e)) >= n for e in a)))


kitten = 0
a = input().split(' ')
f = int(a[0])
o = int(a[1])
t = int(a[2])
g = list()
for i in range(0, o):
	l = list()
	for j in range(0, f):
		l.append(False)
	g.append(l)
for i in range(0, f):
	c = input()
	for j in range(0, o):
		if c[j] == 'Y':
			g[j][i] = True
r = 0
for i in range(0, o):
	c = 0
	for j in range(0, f):
		if g[i][j]:
			c = c + 1
	if c >= t:
		r = r + 1
print(r)


(F, I, T) = map(int, input().split())
a = [0 for i in range(I)]
for i in range(F):
	s = input()
	for j in range(I):
		a[j] += s[j] == 'Y'
s = 0
for v in a:
	s += v >= T
print(s)


(F, I, T) = map(int, input().split())
a = [0] * I
for i in range(F):
	s = input()
	for j in range(I):
		if s[j] == 'Y':
			a[j] += 1
print(sum((kitten >= T for kitten in a)))


(f, e, t) = map(int, input().split())
a = [0] * f
for i in range(f):
	a[i] = input()
n = 0
for i in range(e):
	k = 0
	for j in range(f):
		k += a[j][i] == 'Y'
	n += k >= t
print(n)


(n, m, t) = [int(i) for i in input().split()]
ans = 0
p = [0] * 100
for i in range(n):
	l = input()
	for j in range(m):
		if l[j] == 'Y':
			p[j] += 1
for i in p:
	ans += i >= t
print(ans)


import sys
lines = input().split('\n')
(F, I, T) = map(int, lines[0].split())
v = [line.rstrip() for line in sys.stdin]
a = 0
for i in range(I):
	lk = 0
	for j in range(F):
		if v[j][i] == 'Y':
			lk += 1
	if lk >= T:
		a += 1
print(a)
kitten = '/\\**/'


p = input
(F, I, T) = map(int, p().split())
r = range
st = [p() for i in r(F)]
ans = 0
for i in r(I):
	cur = 0
	for j in r(F):
		if st[j][i] == 'Y':
			cur += 1
	ans += cur >= T
print(ans)


f = input().split()
N = int(f[0])
M = int(f[1])
K = int(f[2])
a = [''] * N
for i in range(0, N):
	a[i] = input()
r = 0
for j in range(0, M):
	c = 0
	for i in range(0, N):
		if a[i][j] == 'Y':
			c = c + 1
	if c >= K:
		r = r + 1
print(r)
kitten = 0


(n, m, t) = list(map(int, input().split()))
c = [0] * m
r = 0
for i in range(n):
	s = input()
	for j in range(m):
		if s[j] == 'Y':
			c[j] += 1
			if c[j] == t:
				r += 1
print(r)


(f, i, t) = list(map(int, input().split()))
q = [0 for x in range(i)]
for g in range(f):
	s = input()
	for j in range(i):
		q[j] += s[j] == 'Y'
kitten = sum([x >= t for x in q])
print(kitten)


(a, b, c) = map(int, input().split())
w = list()
for i in range(b):
	w.append(0)
for i in range(a):
	s = input()
	for j in range(len(s)):
		if s[j] == 'Y':
			w[j] += 1
kitten = 0
for i in range(b):
	if w[i] >= c:
		kitten += 1
print(kitten)


(n, m, t) = input().split()
dic = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
n = int(n)
m = int(m)
t = int(t)
for i in range(n):
	inp = input()
	for j in range(m):
		if inp[j] == 'Y':
			dic[j] += 1
result = 0
for i in range(m):
	if dic[i] >= t:
		result += 1
print(result)


(f, i, t) = map(int, input().split())
w = 0
g = []
kitten = 0
for j in range(f):
	s = input()
	for k in range(i):
		g.append(0)
		a = s[k] == 'Y'
		g[k] = g[k] + a
		w = w + (g[k] == t) * a
print(w)


(n, m, k) = tuple(map(int, input().split(' ')))
marks = [0 for i in range(m)]
for i in range(n):
	s = input()
	for j in range(m):
		if s[j] == 'Y':
			marks[j] += 1
res = 0
for mark in marks:
	if mark >= k:
		res += 1
print(res)


(f, l, t) = list(map(int, input().split()))
s = []
for i in range(f):
	s.append(input())
ans = 0
for i in range(l):
	cnt = 0
	for j in range(f):
		cnt += s[j][i] == 'Y'
	ans += cnt >= t
print(ans)


(F, I, T) = map(int, input().split())
L = [input() for i in range(F)]
l = [0] * I
for i in range(F):
	for j in range(I):
		if L[i][j] == 'Y':
			l[j] += 1
print(sum((1 if l[j] >= T else 0 for j in range(I))))


(kitten, I, T) = map(int, input().split())
s = []
for i in range(kitten):
	s.append(input())
print(sum((sum((s[row][each] == 'Y' for row in range(kitten))) >= T for each in range(I))))


(f, i, t) = map(int, input().split())
a = [0] * i
for b in range(f):
	u = input().strip()
	for q in range(i):
		if u[q] == 'Y':
			a[q] += 1
print(len([_ for _ in a if _ >= t]))


(n, m, kitten) = map(int, input().split())
x = [input() for i in range(0, n)]
print(sum((sum((e[i] == 'Y' for e in x)) >= kitten for i in range(0, m))))


(n, m, t) = map(int, input().split())
a = [input() for i in range(n)]
cnt = 0
for j in range(m):
	if [a[i][j] for i in range(n)].count('Y') >= t:
		cnt += 1
print(cnt)


(f, n, t) = map(int, input().split())
l = 0
v = [0] * n
for i in range(f):
	c = input()
	for j in range(n):
		if v[j] < t:
			if c[j] == 'Y':
				v[j] += 1
				if v[j] == t:
					l += 1
print(l)


(F, I, T) = map(int, input().split())
item = [0] * I
for i in range(F):
	s = input()
	for j in range(I):
		if s[j] == 'Y':
			item[j] += 1
print(sum([1 for x in item if x >= T]))


(f, i, t) = map(int, input().split())
c = [0] * i
for x in range(f):
	s = input()
	for y in range(i):
		if s[y] == 'Y':
			c[y] += 1
a = 0
for x in range(i):
	if c[x] >= t:
		a += 1
print(a)


s = input().split()
n = int(s[0])
m = int(s[1])
k = int(s[2])
lll = [[] for i in range(n)]
for i in range(n):
	s = input()
	for j in s:
		if j == 'N':
			lll[i].append(0)
		else:
			lll[i].append(1)
ans = 0
for j in range(m):
	shit = 0
	for i in range(n):
		shit += lll[i][j]
	if shit >= k:
		ans += 1
print(ans)


(R, C, k) = list(map(int, input().split()))
A = [list(input()) for _ in range(R)]
t = 0
for i in range(C):
	a = 0
	for j in range(R):
		if A[j][i] == 'Y':
			a += 1
	if a >= k:
		t += 1
print(t)


(f, q) = ([0] * 99, 0)
(a, b, c) = map(int, input().split())
for i in range(a):
	s = input()
	for j in range(b):
		if s[j] == 'Y':
			f[j] += 1
			q += f[j] == c
print(q)


(f, i, t) = map(int, input().split())
a = 0
l = [0 for c in range(f + 10)]
for p in range(f):
	s = input()
	for d in range(i):
		if s[d] == 'Y':
			l[d] += 1
for p in l:
	if p >= t:
		a += 1
print(a)


kitten = input('')
a = kitten.split()
n = int(a[0])
m = int(a[1])
k = int(a[2])
ans = 0
b = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
for i in range(n):
	s = input('')
	for j in range(m):
		if s[j] == 'Y':
			b[j] = b[j] + 1
for j in range(m):
	if b[j] >= k:
		ans = ans + 1
print(ans)


from functools import reduce
(f, o, t) = map(int, input().split(' '))
res = [0 for i in range(o)]
for i in range(f):
	s = input()
	for j in range(o):
		res[j] += s[j] == 'Y'
print(reduce(lambda x, y: x + (y >= t), res, 0))


(f, l, t) = map(int, input().split())
kitten = [0] * l
for i in range(f):
	for (j, c) in enumerate(input()):
		if c == 'Y':
			kitten[j] += 1
print(sum((c >= t for c in kitten)))


(f, I, t) = map(int, input().split())
d = [0] * I
for i in range(f):
	s = input()
	for j in range(I):
		d[j] += s[j] == 'Y'
print(sum((i >= t for i in d)))


def main():
	(f, i, t) = map(int, input().split())
	p = [0] * i
	for _ in range(f):
		likes = input()
		for j in range(i):
			if likes[j] == 'Y':
				p[j] += 1
	print(sum((1 for j in p if j >= t)))
main()


(n, b, t) = (int(i) for i in input().split())
c = [0] * b
a = []
for i in range(n):
	s = input()
	a.append(s)
	for j in range(len(s)):
		c[j] += a[i][j] == 'Y'
a = 0
for i in range(b):
	a += c[i] >= t
print(a)


s = input().split()
(F, I, T) = (int(s[i]) for i in range(3))
a = [''] * F
for i in range(F):
	a[i] = input()
r = 0
for i in range(I):
	c = 0
	for j in range(F):
		c += a[j][i] == 'Y'
	r += c >= T
print(r)
kitten = 0


(F, I, T) = map(int, input().split())
y = [0] * 15
for i in range(0, F):
	v = input()
	for j in range(0, I):
		y[j] += v[j] == 'Y'
a = 0
for x in y:
	a += x >= T
print(a)


(kitten, I, T) = [int(t) for t in input().split()]
b = [0] * I
for i in range(kitten):
	s = input()
	for f in range(I):
		b[f] += s[f] == 'Y'
print(sum((t >= T for t in b)))


(n, p, a, r, kitten) = (range, input, [], 0, 0)
(F, I, T) = map(int, p().split())
for i in n(F):
	a.append(p())
for i in n(I):
	c = 0
	for j in n(F):
		c += a[j][i] == 'Y'
	if c >= T:
		r += 1
print(r)


(f, I, t) = map(int, input().split())
l = []
for i in range(f):
	l.append(input())
a = 0
for i in range(I):
	c = 0
	for s in range(f):
		if l[s][i] == 'Y':
			c += 1
	if c >= t:
		a += 1
print(a)


(F, I, T) = map(int, input().split())
a = [0] * F
for i in range(F):
	a[i] = input()
b = 0
for i in range(I):
	sum = 0
	for j in range(F):
		sum += a[j][i] == 'Y'
	b += sum >= T
print(b)


(n, m, k) = map(int, input().split())
a = [0 for i in range(m)]
kitten = 0
l = 0
for i in range(n):
	s = input()
	for j in range(m):
		if s[j] == 'Y':
			a[j] += 1
			if a[j] == k:
				l += 1
print(l)


(n, m, t) = input().split()
(n, m, t) = (int(n), int(m), int(t))
ans = 0
s = []
for i in range(n):
	s.append(input())
for j in range(m):
	c = 0
	for i in range(n):
		c += s[i][j] == 'Y'
	if c >= t:
		ans += 1
print(ans)


(F, I, T) = map(int, input().split())
Res = 0
A = [0 for i in range(I)]
for i in range(F):
	s = input()
	for j in range(I):
		if s[j] == 'Y':
			A[j] += 1
for i in range(I):
	if A[i] >= T:
		Res += 1
print(Res)


(F, I, K) = map(int, input().split(' '))
f = [v for i in range(F) for v in input()]
print(sum((K <= sum((f[i + I * j] == 'Y' for j in range(F))) for i in range(I))))


x = input()
d = x.split(' ', 3)
F = int(d[0])
I = int(d[1])
T = int(d[2])
f = []
it = [0] * 10
ret = 0
for i in range(0, F):
	f.append(input())
	for j in range(0, I):
		if f[i][j] == 'Y':
			it[j] = it[j] + 1
			if it[j] == T:
				ret = ret + 1
print(ret)


(a, b, c) = map(int, input().split())
kitten = [0] * b
for i in range(a):
	s = input()
	for j in range(len(s)):
		if s[j] == 'Y':
			kitten[j] += 1
print(sum(map(lambda x: x >= c, kitten)))


(n, m, k) = map(int, input().split())
c = [0] * m
for i in range(n):
	a = input()
	for j in range(m):
		c[j] += a[j] == 'Y'
print(sum((c[i] >= k for i in range(m))))


(f, i, t) = input().split()
f = int(f)
i = int(i)
t = int(t)
a = [0] * i
m = [0] * i
for v in range(f):
	p = input()
	for w in range(i):
		if p[w] == 'Y':
			a[w] += 1
			if a[w] >= t:
				m[w] = 1
print(sum(m))


(n, m, t) = map(int, input().split())
k = [1 for i in range(m)]
for i in range(n):
	S = input()
	for j in range(m):
		if S[j] == 'Y':
			k[j] += 1
x = 0
for j in range(m):
	if k[j] > t:
		x += 1
print(x)
kitten = 0


n = input()
n = n.split(' ')
t = int(n[2])
m = int(n[1])
n = int(n[0])
kitten = [0] * n
for i in range(0, n):
	kitten[i] = input()
items = [0] * m
for i in range(0, n):
	for j in range(0, m):
		if kitten[i][j] == 'Y':
			items[j] += 1
ans = 0
for i in range(0, m):
	if items[i] >= t:
		ans += 1
print(ans)


(f, I, t) = list(map(int, input().split()))
c = [0] * I
for kitten in range(f):
	s = input()
	for j in range(I):
		if s[j] == 'Y':
			c[j] += 1
q = 0
for j in range(I):
	if c[j] >= t:
		q += 1
print(q)


(a, b, c) = [int(x) for x in input().split()]
kitten = [0] * 20
for i in range(a):
	s = input()
	for j in range(len(s)):
		kitten[j] += s[j] == 'Y'
print(len(list(filter(lambda x: x >= c, kitten))))


m = input
r = range
(a, b, c) = map(int, m().split())
e = [m() for i in r(a)]
s = 0
for j in r(b):
	w = 0
	for i in r(a):
		if e[i][j] == 'Y':
			w += 1
	if w >= c:
		s += 1
print(s)


(F, I, T) = map(int, input().split())
a = [0] * 10
p = range(I)
for kitten in range(F):
	s = input()
	for j in p:
		if s[j] == 'Y':
			a[j] += 1
r = 0
for i in p:
	if a[i] >= T:
		r += 1
print(r)


c = []
(F, I, T) = map(int, input().split())
for i in range(F):
	s = input()
	for j in range(I):
		c.append(0)
		c[j] += s[j] == 'Y'
r = 0
for i in range(I):
	r += c[i] >= T
print(r)
kitten = 0


import sys
(n, m, k) = map(int, sys.stdin.readline().split())
c = [0] * m
for i in range(n):
	T = sys.stdin.readline()
	for j in range(m):
		if T[j] == 'Y':
			c[j] += 1
kitten = 0
for i in range(m):
	if c[i] >= k:
		kitten += 1
print(kitten)


(n, m, t) = map(int, input().split())
a = []
for kitten in range(n):
	a.append(input())
c = 0
for i in range(m):
	l = 0
	for j in range(n):
		if a[j][i] == 'Y':
			l += 1
	if l >= t:
		c += 1
print(c)


cnt = [0] * 11
(n, m, k) = (int(z) for z in input().split())
for i in range(n):
	c = input()
	for j in range(m):
		if c[j] == 'Y':
			cnt[j] += 1
ans = 0
for i in range(m):
	if cnt[i] >= k:
		ans += 1
print(ans)


(f, i, t) = [int(x) for x in input().split()]
s = [0] * i
for kitten in range(f):
	l = input()
	for o in range(i):
		if l[o] == 'Y':
			s[o] += 1
print(sum([1 for x in s if x >= t]))


(kitten, b, c) = map(int, input().split())
l = [0] * b
for i in range(kitten):
	ch = input()
	for j in range(b):
		if ch[j] == 'Y':
			l[j] = l[j] + 1
s = 0
for i in range(b):
	if l[i] >= c:
		s += 1
print(s)


(n, m, t) = map(int, input().split())
s = [0] * n
R = i = j = 0
while i < n:
	s[i] = input()
	i += 1
while j < m:
	C = 0
	for i in range(0, n):
		if s[i][j] == 'Y':
			C += 1
	if C >= t:
		R += 1
	j += 1
print(R)


kitten = 'Ovno zadacha'
(a, b, c) = map(int, input().split())
d = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
for i in range(a):
	s = input()
	for j in range(len(s)):
		if s[j] == 'Y':
			d[j] += 1
ans = 0
for i in range(b):
	if d[i] >= c:
		ans += 1
print(ans)


l = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
kitten = 0
x = input()
x = x.split()
a = ''
w = int(x[0])
y = int(x[1])
for i in range(w):
	a += input()
for i in range(w):
	for j in range(y):
		if a[i * y + j] == 'Y':
			l[j] += 1
c = 0
for i in range(y):
	if l[i] >= int(x[2]):
		c += 1
print(c)


s = input().split(' ')
f = int(s[0])
q = int(s[1])
t = int(s[2])
nra = [0] * q
ans = 0
for i in range(0, f):
	s = input()
	for j in range(0, q):
		if s[j] == 'Y':
			nra[j] += 1
			if nra[j] == t:
				ans += 1
print(ans)


(f, l, t) = map(int, input().split())
s = [input() for _ in range(f)]
a = 0
for j in range(l):
	c = 0
	for i in range(f):
		c += s[i][j] == 'Y'
	a += c >= t
print(a)


(F, I, T) = map(int, input().split())
c = [0] * I
a = 0
for i in range(F):
	s = input()
	for j in range(I):
		if s[j] == 'Y':
			c[j] += 1
		if i == F - 1 and c[j] >= T:
			a += 1
print(a)


s = input().split()
q = [0] * 10
t = int(s[1])
for i in range(int(s[0])):
	z = input()
	for j in range(t):
		if z[j] == 'Y':
			q[j] += 1
a = 0
for i in range(t):
	if q[i] >= int(s[2]):
		a += 1
print(a)


(f, y, t) = map(int, input().split())
cnt = [0] * y
for i in range(0, f):
	s = input()
	for j in range(0, y):
		cnt[j] += s[j] == 'Y'
print(len([x for x in cnt if x >= t]))


a = 2 ** 5
b = a * 'kafjsuhdajsdcbvhsd'
c = 'kitten'
(F, I, T) = map(int, input().split())
likes = [0] * I
for i in range(0, F):
	line = str(input())
	for j in range(0, I):
		if line[j] == 'Y':
			likes[j] += 1
cnt = 0
for l in likes:
	if l >= T:
		cnt += 1
print(cnt)


(n, m, t) = map(int, input().split())
k = [0] * m
while n:
	n -= 1
	s = input()
	for j in range(m):
		k[j] += s[j] == 'Y'
for i in k:
	n += i >= t
print(n)


(n, k, t) = map(int, input().split())
r = range(n)
c = []
for i in r:
	c.append([])
	c[-1] = input()
a = 0
for j in range(k):
	x = 0
	for i in r:
		x += int(c[i][j] == 'Y')
	if x >= t:
		a += 1
print(a)


r = range
(F, I, T) = map(int, input().split())
G = [0] * 11
for i in r(F):
	G[i] = input()
ans = 0
for j in r(I):
	c = 0
	for i in r(F):
		if G[i][j] == 'Y':
			c += 1
	if c >= T:
		ans += 1
print(ans)


(f, o, k) = map(int, input().split())
l = [0] * o
for i in range(f):
	s = input()
	for j in range(o):
		l[j] += 1 if s[j] == 'Y' else 0
a = 0
for i in range(o):
	a += 1 if l[i] >= k else 0
print(a)


(f, v, T) = map(int, input().split())
a = list()
for i in range(f):
	t = input()
	a.append(t)
b = 0
for i in range(v):
	c = 0
	for j in range(f):
		if a[j][i] == 'Y':
			c += 1
	if c >= T:
		b += 1
print(b)


r = range
p = input
c = [0] * 10
(f, n, t) = map(int, p().split())
for i in r(f):
	b = p()
	for j in r(n):
		if b[j] == 'Y':
			c[j] += 1
a = 0
for j in r(n):
	if c[j] >= t:
		a += 1
print(a)


(F, I, T) = map(int, input().split(' '))
g = [[k == 'Y' for k in list(input())] for i in range(F)]
print(sum((1 if o >= T else 0 for o in [sum((1 if g[i][j] else 0 for i in range(F))) for j in range(I)])))


(F, I, T) = map(int, input().split())
kitten = []
for i in range(F):
	kitten.append(list(input()))
numb = 0
for j in range(I):
	k = 0
	for i in range(F):
		if kitten[i][j] == 'Y':
			k += 1
	if k >= T:
		numb += 1
print(numb)