if ($matchtok($1-,word,0,32) > 5) { do stuff }

matchtok with Nth being 0 would return the x amount of times that word is in $1- :P