$f(x_1,x_2,x_3,x_4,x_5)$ = the number of positive numbers amongst the $x_i$
is a perfectly reasonable description of a math function that returns the number of positive numbers amongst the five parameters.
If I define
$$ g(x) = \begin{cases} 0 & x \leq 0 \\ 1 & x > 0 \end{cases} $$
then
$$f(x_1, x_2, x_3, x_4, x_5) = \sum_{i=1}^5 g(x_i) $$
is another reasonable description. And so forth.
For many purposes, these sorts of simple descriptions are much better than any alternative; don't bother looking for more "clever" descriptions unless you actually need to. And then, you should do your best to be very clear about just what you need from a description, so that you don't make trouble for yourself by overlooking other easy things.
Incidentally, the Iverson bracket gives a simple way to write $g$:
$$f(x_1, x_2, x_3, x_4, x_5) = \sum_{i=1}^5 [x_i > 0] $$