Symbol for the number of elements in a set I would like to express below concisely and mathmatically


*

*TP is a set of real numbers

*$$C = \{ x \in TP : x > threshold \}$$

*c_count = len(C)
Basically, in English, I want to count the number of numbers in TP is greater than threshold

With $C$ defined as above, $|C|$, the cardinality of $C$, would represent the number of elements $x$ in $TP$ such that $x>\text{threshold}$. Written out fully:
$$|C|=|\{x\in TP\mid x>\text{threshold}\}|$$
