Hey, I know that code. That code is old and could probably be reworked as westor has done there.

Let's go with this, following westor there as well with the timer.
Code:
alias sub_reset { set %sub 0 | set %resub 0 }

ON *:CONNECT: { .timer_SUBRESET 00:00 1 61 sub_reset }

ON *:TEXT:#: {
  if ($nick != twitchnotify || ($istok($1-,subscribed to,32)) { halt }
  if ($istok($1-,months,32)) {
    inc %resub 1
    msg # /me - $1 $+ , thank you for the $4 months of support. [New Subs: %sub $+ ] [Resubs: %resub $+ ] [Total: $calc(%sub + %resub) $+ ]
  }
  if ($istok($1-,just subscribed,32)) {
    inc %sub 1
    msg # /me - $1 $+ , thank you for subscribing, please enjoy your emotes to use all across Twitch. - [New Subs: %sub $+ ] and [Resubs: %resub $+ ] [Total: $calc(%sub + %resub) $+ ]
  }
}