function: type token ration. Working, more tests needed