Exceptional Python
With n ≤ 100, O(n2) is fine so we can keep it super simple:\n\ndef countStudents(self, students, sandwiches):\n    try:\n        for sandwich in sandwiches:\n  
With n &le; 100, O(n<sup>2</sup>) is fine so we can keep it super simple:\n```\ndef countStudents(self, students, sandwiches):\n    try:\n        for sandwich in sandwiches:\n            students.remove(sandwich)\n    except:\n        pass\n    return len(students)\n```\nO(n) alternative:\n```\ndef countStudents(self, students, sandwiches):\n    students = Counter(students)\n    for sandwich in sandwiches:\n        if not students[sandwich]:\n            break\n        students[sandwich] -= 1\n    return sum(students.values())\n```\nHacky Python2 version of the first:\n```\ndef countStudents(self, A, B):\n    try: map(A.remove, B)\n    except: pass\n    return len(A)\n```
[]