Another possibility might be
=SUMPRODUCT(--($B$2:$B$300=$H5)+--($C$2:$C$300=$H5),--($A$2:$A$300>=$I$2),--($A$2:$A$300<=$I$3))