#include using namespace std; int main(){ int N; cin >> N; vector A(N), B(N); for(auto &x : A) cin >> x; for(auto &x : B) cin >> x; int ans = 0; for(int i = 0; i < N; i++){ if(A[i] <= B[i]) ans++; } cout << ans; }