Added getNumTicks() method