n = raw_input()                                                
l = map(int, raw_input().split())                              
n = raw_input()                                                
                                                               
sum = 0                                                        
for i in map(int, raw_input().split()):                        
    if i in l:                                                 
        sum += 1                                               
                                                               
print sum n = raw_input() n raw_input() raw_input l = map(int, raw_input().split()) l map(int, raw_input().split()) map int raw_input().split() ().split () raw_input split n = raw_input() n raw_input() raw_input sum = 0 sum 0 for i in map(int, raw_input().split()):                        
    if i in l:                                                 
        sum += 1                                               
                                                                i map(int, raw_input().split()) map int raw_input().split() ().split () raw_input split if i in l:                                                 
        sum += 1                                               
                                                                i in l i l sum += 1 sum 1 print sum += 1 1 sum l = map(int, raw_input().split()) map(int, raw_input().split()) l n = raw_input() raw_input() n n = raw_input() raw_input() n sum = 0 0 sum
n = raw_input()                                                
l = map(int, raw_input().split())                              
n = raw_input()                                                
                                                               
sum = 0                                                        
for i in map(int, raw_input().split()):                        
    if i in l:                                                 
        sum += 1                                               
                                                               
print sum