import sys
n = int(input())
l = list(map(int, sys.stdin.readline().split()))
find = int(input())
print(l.count(find))

2b9ec049c071c55d497e56d21ba533c834b9dcab
<mask token>

<mask token>
print(l.count(find))

<mask token>
n = int(input())
l = list(map(int, sys.stdin.readline().split()))
find = int(input())
print(l.count(find))

import sys
n = int(input())
l = list(map(int, sys.stdin.readline().split()))
find = int(input())
print(l.count(find))
