Maybe looking into CountIf Function
www.techonthenet.com/excel/formulas/countif.php