ROWS
Lookup

Returns the number of rows in a reference

Syntax:

=ROWS(array)

Example:

=ROWS(A1:D10)