N=int(input())
suma=0

for i in range(N):
    x = int(input())
    if x % 2 == 0:
        suma = suma+1

print(suma)