# Number of elements smaller than a given value: count_inf

### 5.40.23 Number of elements smaller than a given value: count_inf

The count_inf command counts the number of elements of a list strictly less than a given value.

- count_inf takes two arguments:
  - x, a real number.
  - L, a list or matrix of real numbers.
- count_inf(x,L) returns the number of elements of L which are strictly less than x.

#### Example.

Input:

count_inf(12,[2,12,45,3,7,78])

Output:

3