Count the number of distinct elements common to two lists.
Constraints
Example
```python >>> intersection_length([1, 2, 2, 3], [2, 3, 4]) 2 >>> intersection_length([1, 1, 1], [2, 2]) 0 >>> intersection_length([], [1, 2]) 0 >>> intersection_length(['a', 'b'], ['b', 'c']) 1 ```
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints