<human>:  Give me a Python code to count number of overlaps in two nested lists.
<bot>:

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

#Example Output
# 10

#Remember to inspect code for bugs.