java easy and understandable solution
\nclass Solution {\n    public int countStudents(int[] s, int[] sa) {\n        int[] arr = {0,0};\n        for (int i : s) arr[i]++;\n        for(int k:sa){\n  
```\nclass Solution {\n    public int countStudents(int[] s, int[] sa) {\n        int[] arr = {0,0};\n        for (int i : s) arr[i]++;\n        for(int k:sa){\n            if(arr[k]==0) break;\n            arr[k]--;\n        }\n        return arr[0]+arr[1];\n    }\n}\n```
['Java']