A counter is fine, but an another way of doing it would be to increase a number every tick and then use the modulo operator to compare the current value.
So for example, create a ticks field, run ++ticks every tick to increment, then do if (ticks % 10 == 0). It will return true every ten ticks.
The modulo operator is basically a division operator that returns the remainder, so comparing it to zero will only return true if the value is cleanly divisible.
It won't make a noticeable difference performance-wise, but you may find the code to be a little cleaner. It's just a personal preference thing.