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