Hey I am new to scripting with mIRC, I want a script that when activated by command would raise a number in a txt file.

I already know I can write and replace the first line with
Code:
on *:TEXT:!add:#: {
  write -l1 number.txt 1
}

But I want that number to rise by 1 every time someone uses the command.
Thanks for the help.