N=int(input()) ans=0 A=list(map(int,input().split())) B=list(map(int,input().split())) for i in range(N): if A[i]<=B[i]: ans+=1 print(ans)