Simple Python Solution using Counter
\n# Approach\n Describe your approach to solving the problem. \nWe can distribute sandwich, if there is any student who wants that sandwich.\nSo, we create a co
\n# Approach\n<!-- Describe your approach to solving the problem. -->\nWe can distribute sandwich, if there is any student who wants that sandwich.\nSo, we create a counter of students.\nAnd, iterate sandwiches, one by one and check if there is any student left who wants that sandwich.\n\nIf there is a student who wants that sandwich, we decrease counter by 1, else we return count of students which want other kind of sandwich\n\n# Code\n```\nclass Solution:\n    def countStudents(self, students: List[int], sandwiches: List[int]) -> int:\n        student_count = Counter(students)\n        for sandwich in sandwiches:\n            if student_count[sandwich] > 0:\n                student_count[sandwich] -= 1\n            else:\n                return student_count[not sandwich]\n        return 0\n\n```
['Counting', 'Python3']