tokenize simply returns the count, instead of requiring a pointer arg