A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
In case if one condition and you don't want to count blanks, assuming your range is A1:A10 then give this formula
=COUNTIF(A1:A10,"<>")
For more than one condition, use COUNTIFS where you may give more than 1 condition.