Count function. COUNT(range) counts the number of cells in the specified range that have a numerical content.
The argument range can be a list of numbers, cell addresses, cell ranges (such as A1:A10).
Range can also be a matrix. In that case the function returns a matrix with one row and the same number of columns, with each element the COUNT of the corresponding column. If range is a row matrix, it is converted to a column matrix first.
COUNT(A1:A8) counts the numbers in the cell range A1 to A8.