n = int(input()) a = [*map(int, input().split())] b = [*map(int, input().split())] ans = 0 for x, y in zip(a, b): if x <= y: ans += 1 print(ans)