Count cells less than in Excel and Google Sheets

=COUNTIF(A:A,"<10")

=COUNTIF(A:A,"<"&B3) // Criteria as a cell reference

A:A = Range

Check below for a detailed explanation with pictures and how to use formulas in Excel and Google Sheets.