I played about with the formula often used to count unique values
=SUM(IF(FREQUENCY(MATCH(B2:B11,B2:B11,0),MATCH(B2:B11,B2:B11,0))>0,1))
trying to add type must match and cw must match but no luck
I resorted to helper columns I and J
Note I had to replace the blank type by 0 in the data
best wishes