human
Give me a Python code to count number of overlaps in two nested lists.
assistant
Here is a Python code to count number of overlaps in two nested lists

import collections

def count_overlaps(list1, list2):
    """
    Count number of overlaps in two nested lists.
    """
    count = 0
    for i in range(len(list1)):
        for j in range(len(list2)):
            if list1[i] == list2[j]:
                count += 1
    return count

# Enter the list
list1 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

# Enter the list
list2 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

# Calling the function
print((count_overlaps(list1, list2)))

#Example Output
# 10

#Remember to inspect code for bugs.