I haven't seen the "words of code" metric before, and some cursory web searching doesn't reveal much. Is there a standard? Just split on the given language's punctuation/delimiters?
They answer what it means and provide the command used to figure it out in the first FAQ: https://tinyssh.org/faq.html
$ wc
void main(int argc, char **argv) { printf("Hi, I'm %s\n", argv[0]); }
1 11 70
lines words chars
$ tr '()[]{}*+.>,";'"'"- ' ' | wc
void main(int argc, char **argv) { printf("Hi, I'm %s\n", argv[0]); }
1 13 70