Counting elements greater than a given value

### 14.3.15 Counting elements greater than a given value

The count_sup command counts the number of elements in a matrix which are greater than a given value.

- count_sup takes two arguments:
  - a, a real number.
  - A, a matrix or a list of real numbers.
- count_sup(a,A) returns the number of elements of A that are strictly greater than a.

#### Example

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

2 |  |  |  |  |  |  |  |  |  |