You can use the SUBTOTAL function...
=SUBTOTAL(109, A2:A100)
The SUBTOTAL function also has other function arguments, which means that it can also return a count, average, etc. Have a look at the help file for additional information.
Hope this helps!