n = int(input()) a = list(map(int, input().split())) b = list(map(int, input().split())) cnt = 0 for x, y in zip(a, b): if y >= x: cnt += 1 print(cnt)