[RMXP] Help with placing numbers on-screen.

I want to have a timer with numbers on-screen for some kind of time-based event. I found this script that seemed to work and do what I needed here:

However, after setting everything up as instructed with a provided tutorial video, I get this error:

Code:
Script 'Game_Switches' line 20: NoMethodError occured.

undefined method '<=' for nil:NilClass

From what I've seen, the error is occurring from the second block of code within the thread. I've re-tried the tutorial a few times and made everything was exactly the same for each line.

There's a demo included with the post, but the link currently just leads to a seemingly now obsolete webpage (though the actual website is still online).
Your project is complaining that you're passing in a nil value as your switch ID, when it normally should be an integer.

I had no issues with the script.

Paste your modified Spriteset_Map just so we know that you did things correctly.

Also make sure you don't have any other scripts in your project that touch the Spriteset_Map class.
Here's my script:

What other scripts does your project have then? My guess is you have a script that rewrites Spriteset_Map#initialize, so all your changes are just going to be ignored.
I do actually, a caterpillar script, and that's exactly what it's doing.
Yeah so move the code that you put in Spriteset_Map#initialize in the same spot in your caterpillar script. Seems like update_number! is being called just fine, so you can leave those changes alone.

Original thread: https://forums.rpgmakerweb.com/threads/rmxp-help-with-placing-numbers-on-screen.156728/