Hi Shinu.
$gettok(%b,0,32)
is the same thing as
$numtok(%b,32)
Good code. Nice to see explanations to scripts => user friendly. :)