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