<human>:  Write me a Python program to count number of overlaps in two nested lists.
<bot>:)

# Calling the function
print((count_overlaps(matrix, matrix)))

#Example Output

# 3

#Remember to inspect code for bugs.