Perhaps use the =countifs function.

Here is a tutorial: http://www.techonthenet.com/excel/formulas/countifs.php