COUNTIF(range,criteria)
range: cell area
criteria: condition for a cell to be counted
This function is Excel compatible.
COUNT, SUMIF.