A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
For your C2 cell, use this instead. COUNTIF and COUNTIFS are not case-sensitive.
=SUMPRODUCT(--EXACT(Dtype,C$1))
OR
=SUMPRODUCT(--EXACT($A:$A,C$1))