A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Let's say that the table on the left is in B2:E6, with headers in row 2, and that the table on the right is in G2:I7, also with headers in row 2.
Enter the following formula in I3:
=COUNTIFS($C$3:$C$6, "<="&H3+6, $E$3:$E$6, ">=" & H3)
and fill down.