String splitting in Objective C.
Count words solution in JavaScript