glest uses about 40 frames per second on default in their animations, so if their animations dont lag you, then just multiply 40 * (length of your animation in seconds) and floor the number to the closest integer. if glest animations lag you, then lower the count.