It’s an integer, yes. The timer fires once per second and increases this int by 1 (++), the modulo (%) wraps this value back to 0 when we reach the end of the array.
In the end you’re getting a [0,1,2,3,4] sequence and the int pulls the appropriate element from the array which is then pushed into the material.