n=int(input()) a=list(map(int,input().split())) q=int(input()) x=list(map(int,input().split())) x_max=100001 cnt=0 for i in range(q): if(x[i]