c=int(input()) a = list(map(int, input().split())) b = list(map(int, input().split())) d=0 for i in range(c): if b[i]>=a[i]: d+=1 print(d)