The Excel function in question is COUNT. The COUNT function counts the number of cells in a specific range, that contain numbers. The range of values can be numbers, text or cell references, but the COUNT function will only count the numbers. To count logical values you can use the function COUNTA.