R=range J=lambda:list(map(int,input().split())) N,M=J() A=J() B=J() print(len([max(0,B[j]-len([a for a in A if a==j+1]))for j in R(M)]))