Over the complex plane, every rational function factors into linear factors. Some factors are in the numerator and some in the denominator. Consider any linear factor $\ z-c. \ $ It clearly has a simple zero at $\ z=c. \ $ We consider that it also has a simple pole at infinity to balance the simple zero. That is, the number of zeros and poles are equal. This makes sense for several reasons. If we extend this idea to all the linear factors of any rational function, then the number of zeros and poles of it are requal, up to multiplicity.
In the case of your function $\ f(z) = z/(1+z^2) = z/((z+i)(z-i)). \ $ The $\ z \ $ gives a zero at $0$ and a pole at $\infty.$ The two factors in the denominator contribute a double zero at $\infty$ along with poles at $i$ and $-i.$ Thus, in total, there are simple zeros at $0$ and $\infty$, and simple poles at $i$ and $-i.$ You can see this in another way by using partial fractions. Here
$\ f(x) = \frac12(\frac1{x+i}+\frac1{x-i}). \ $ Again, there are simple poles at $i$ and $-i.$ Check that the simple zeros are at $0$ and $\infty.$