tokenize words correctly instead of simply using strings.Count