Modulo Counter - Block
[sim, out] = ld_modcounter(sim, events, in, initial_count, mod)
in * - input
out * -output
A counter that increases its value for each timestep for which in > 0 is true.
if the counter value >= mod then it is reset to counter = initial_count