solution: length of last word 1