run() is called many times, and series() can only be called inside run(). series() counts the number of times it was invoked, corresponding to a particular timeseries.
Read about run() and series() here:
https://zorro-project.com/manual/en/run.htmhttps://zorro-project.com/manual/en/series.htm